ocaml-opentelemetry/opentelemetry/Opentelemetry/Span_link/index.html
2025-03-27 13:35:42 +00:00

14 lines
3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Span_link (opentelemetry.Opentelemetry.Span_link)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.0.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">opentelemetry</a> &#x00BB; <a href="../index.html">Opentelemetry</a> &#x00BB; Span_link</nav><header class="odoc-preamble"><h1>Module <code><span>Opentelemetry.Span_link</span></code></h1><p>Span Link</p><p>A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.</p></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> t</span><span> = <a href="../../Opentelemetry_proto/Trace/index.html#type-span_link">Proto.Trace.span_link</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-make"><a href="#val-make" class="anchor"></a><code><span><span class="keyword">val</span> make :
<span><span class="label">trace_id</span>:<a href="../Trace_id/index.html#type-t">Trace_id.t</a> <span class="arrow">&#45;&gt;</span></span>
<span><span class="label">span_id</span>:<a href="../Span_id/index.html#type-t">Span_id.t</a> <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?trace_state</span>:string <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?attrs</span>:<span><a href="../index.html#type-key_value">key_value</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?dropped_attributes_count</span>:int <span class="arrow">&#45;&gt;</span></span>
<span>unit <span class="arrow">&#45;&gt;</span></span>
<a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_span_ctx"><a href="#val-of_span_ctx" class="anchor"></a><code><span><span class="keyword">val</span> of_span_ctx :
<span><span class="optlabel">?trace_state</span>:string <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?attrs</span>:<span><a href="../index.html#type-key_value">key_value</a> list</span> <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?dropped_attributes_count</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><a href="../Span_ctx/index.html#type-t">Span_ctx.t</a> <span class="arrow">&#45;&gt;</span></span>
<a href="#type-t">t</a></span></code></div></div></div></body></html>