ocaml-opentelemetry/opentelemetry-client/Opentelemetry_client_sync/Bounded_queue_sync/index.html
2026-04-10 19:11:02 +00:00

6 lines
2.2 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>Bounded_queue_sync (opentelemetry-client.Opentelemetry_client_sync.Bounded_queue_sync)</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">opentelemetry-client</a> &#x00BB; <a href="../index.html">Opentelemetry_client_sync</a> &#x00BB; Bounded_queue_sync</nav><header class="odoc-preamble"><h1>Module <code><span>Opentelemetry_client_sync.Bounded_queue_sync</span></code></h1><p>Bounded queue based on simple synchronization primitives.</p><p>This is not the fastest queue but it should be versatile.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create :
<span><span class="optlabel">?measure</span>:<span>(<span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> int)</span> <span class="arrow">&#45;&gt;</span></span>
<span><span class="label">high_watermark</span>:int <span class="arrow">&#45;&gt;</span></span>
<span>unit <span class="arrow">&#45;&gt;</span></span>
<span><span class="type-var">'a</span> <a href="../../Opentelemetry_client/Bounded_queue/index.html#type-t">Opentelemetry_client.Bounded_queue.t</a></span></span></code></div><div class="spec-doc"><p><code>create ~high_watermark ()</code> creates a new bounded queue based on <a href="../Sync_queue/index.html"><code>Sync_queue</code></a>.</p><ul class="at-tags"><li class="parameter"><span class="at-tag">parameter</span> <span class="value">measure</span> <p>maps each item to its signal count (e.g. number of spans in a batch). Used to report accurate signal counts when items are dropped. Default: <code>fun _ -&gt; 1</code>.</p></li></ul></div></div></div></body></html>