mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-10 20:48:35 -04:00
2 lines
2.3 KiB
HTML
2 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Resource_pb (opentelemetry.Opentelemetry_proto.Resource_pb)</title><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/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_proto</a> » Resource_pb</nav><header class="odoc-preamble"><h1>Module <code><span>Opentelemetry_proto.Resource_pb</span></code></h1><p>resource.proto Binary Encoding</p></header><nav class="odoc-toc"><ul><li><a href="#protobuf-encoding">Protobuf Encoding</a></li><li><a href="#protobuf-decoding">Protobuf Decoding</a></li></ul></nav><div class="odoc-content"><h3 id="protobuf-encoding"><a href="#protobuf-encoding" class="anchor"></a>Protobuf Encoding</h3><div class="odoc-spec"><div class="spec value anchored" id="val-encode_resource"><a href="#val-encode_resource" class="anchor"></a><code><span><span class="keyword">val</span> encode_resource : <span><a href="../Resource_types/index.html#type-resource">Resource_types.resource</a> <span class="arrow">-></span></span> <span><span class="xref-unresolved">Pbrt</span>.Encoder.t <span class="arrow">-></span></span> unit</span></code></div><div class="spec-doc"><p><code>encode_resource v encoder</code> encodes <code>v</code> with the given <code>encoder</code></p></div></div><h3 id="protobuf-decoding"><a href="#protobuf-decoding" class="anchor"></a>Protobuf Decoding</h3><div class="odoc-spec"><div class="spec value anchored" id="val-decode_resource"><a href="#val-decode_resource" class="anchor"></a><code><span><span class="keyword">val</span> decode_resource : <span><span class="xref-unresolved">Pbrt</span>.Decoder.t <span class="arrow">-></span></span> <a href="../Resource_types/index.html#type-resource">Resource_types.resource</a></span></code></div><div class="spec-doc"><p><code>decode_resource decoder</code> decodes a <code>resource</code> value from <code>decoder</code></p></div></div></div></body></html>
|