ystem());
</code></pre>

    <h3>Sampling</h3>

    <p>
        Sampling is performed using <code>trace.sample(msg, serviceName, rpcName)</code> method.
        It's recommended to call this method right after message was received by your actor system.
        Sampling rate can be changed using <code>akka.tracing.sample-rate</code> config parameter.
    </p>

    <h3>Trace annotations</h3>

    <p>There are several methods allowing you to annotate traces:</p>

    <ol>
        <li>
            <code>trace.r