This commit is contained in:
c-cube 2026-02-26 16:11:32 +00:00
parent 2f90d0f1f3
commit cc02782a0a
4 changed files with 11 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Callbacks (trace.Trace_core.Ambient_span_provider.Callbacks)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../../index.html">Index</a> &#x00BB; <a href="../../../index.html">trace</a> &#x00BB; <a href="../../index.html">Trace_core</a> &#x00BB; <a href="../index.html">Ambient_span_provider</a> &#x00BB; Callbacks</nav><header class="odoc-preamble"><h1>Module <code><span>Ambient_span_provider.Callbacks</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> <span>'st t</span></span><span> = </span><span>{</span></code><ol><li id="type-t.with_current_span_set_to" class="def record field anchored"><a href="#type-t.with_current_span_set_to" class="anchor"></a><code><span>with_current_span_set_to : 'a. <span><span class="type-var">'st</span> <span class="arrow">&#45;&gt;</span></span>
<span><span class="xref-unresolved">Trace_core__.Types.span</span> <span class="arrow">&#45;&gt;</span></span>
<span><span>(<span><span class="xref-unresolved">Trace_core__.Types.span</span> <span class="arrow">&#45;&gt;</span></span> <span class="type-var">'a</span>)</span> <span class="arrow">&#45;&gt;</span></span>
<span class="type-var">'a</span>;</span></code><div class="def-doc"><span class="comment-delim">(*</span><p><code>with_current_span_set_to span f</code> sets the span as current span, enters <code>f span</code>, and restores the previous current span if any</p><span class="comment-delim">*)</span></div></li><li id="type-t.get_current_span" class="def record field anchored"><a href="#type-t.get_current_span" class="anchor"></a><code><span>get_current_span : <span><span class="type-var">'st</span> <span class="arrow">&#45;&gt;</span></span> <span><span class="xref-unresolved">Trace_core__.Types.span</span> option</span>;</span></code><div class="def-doc"><span class="comment-delim">(*</span><p>Access the current span from some ambient scope. This is only supported for collectors that provide a <code>current_span_wrap</code> field.</p><span class="comment-delim">*)</span></div></li></ol><code><span>}</span></code></div></div></div></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Ambient_span_provider (trace.Trace_core.Ambient_span_provider)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../index.html">Index</a> &#x00BB; <a href="../../index.html">trace</a> &#x00BB; <a href="../index.html">Trace_core</a> &#x00BB; Ambient_span_provider</nav><header class="odoc-preamble"><h1>Module <code><span>Trace_core.Ambient_span_provider</span></code></h1><p>Access/set the current span from some ambient context.</p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> NEXT_RELEASE</li></ul></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Callbacks"><a href="#module-Callbacks" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Callbacks/index.html">Callbacks</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = </span></code><ol><li id="type-t.ASP_none" class="def variant constructor anchored"><a href="#type-t.ASP_none" class="anchor"></a><code><span>| </span><span><span class="constructor">ASP_none</span></span></code></li><li id="type-t.ASP_some" class="def variant constructor anchored"><a href="#type-t.ASP_some" class="anchor"></a><code><span>| </span><span><span class="constructor">ASP_some</span> : <span class="type-var">'st</span> * <span><span class="type-var">'st</span> <a href="Callbacks/index.html#type-t">Callbacks.t</a></span> <span class="arrow">&#45;&gt;</span> <a href="#type-t">t</a></span></code></li></ol></div></div></div></body></html>

File diff suppressed because one or more lines are too long