mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
8 lines
No EOL
2.3 KiB
HTML
8 lines
No EOL
2.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Traceparent (opentelemetry.Opentelemetry.Trace_context.Traceparent)</title><link rel="stylesheet" href="../../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.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">opentelemetry</a> » <a href="../../index.html">Opentelemetry</a> » <a href="../index.html">Trace_context</a> » Traceparent</nav><header class="odoc-preamble"><h1>Module <code><span>Trace_context.Traceparent</span></code></h1><p>The traceparent header https://www.w3.org/TR/trace-context/#traceparent-header</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value" id="val-name" class="anchored"><a href="#val-name" class="anchor"></a><code><span><span class="keyword">val</span> name : string</span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-of_value" class="anchored"><a href="#val-of_value" class="anchor"></a><code><span><span class="keyword">val</span> of_value : <span>string <span class="arrow">-></span></span> <span><span>( <a href="../../Trace_id/index.html#type-t">Trace_id.t</a> * <a href="../../Span_id/index.html#type-t">Span_id.t</a>, string )</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div><div class="spec-doc"><p>Parse the value of the traceparent header.</p><p>The values are of the form:</p><pre>ersion}-{trace_id}-{parent_id}-{flags}
|
||
|
||
For example:
|
||
|
||
00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
|
||
|
||
{flags} are currently ignored.</pre></div></div><div class="odoc-spec"><div class="spec value" id="val-to_value" class="anchored"><a href="#val-to_value" class="anchor"></a><code><span><span class="keyword">val</span> to_value : <span>trace_id:<a href="../../Trace_id/index.html#type-t">Trace_id.t</a> <span class="arrow">-></span></span> <span>parent_id:<a href="../../Span_id/index.html#type-t">Span_id.t</a> <span class="arrow">-></span></span> <span>unit <span class="arrow">-></span></span> string</span></code></div></div></div></body></html> |