</span>
<span class="token keyword">val</span> tracedApi <span class="token operator">=</span> api @@ TracingWrapper<span class="token punctuation">.</span>traced
</code></pre></div><p>This will now make sure that any effect (ZIO or ZQuery) is measured as its own span, which makes it easy to spot potential optimizations (such as sequential loading) in your schema.</p> <p>More or less like this:</p> <div class="language- extra-class"><pre class="language-text"><code>query         |---------------------------