Skip to main content

Module otel_codec

Module otel_codec 

Source
Expand description

Versioned binary encoding of OTLP histogram data points Compact, versioned binary encoding of OTLP histogram data points.

Structs§

Bucket
One bucket of a histogram, in a layout-independent form.
ExpBuckets
Populated buckets of one sign of an exponential histogram: counts[i] is the bucket at index offset + i.
OtelHistogram
A decoded OTLP histogram data point.

Enums§

OtelBuckets
Bucket layout of a histogram.

Constants§

MAX_EXP_SCALE
MIN_EXP_SCALE
Valid range of the OTLP exponential histogram scale.

Functions§

bucket_center
Representative value of a bucket for plotting: the arithmetic midpoint, or the sign-aware geometric midpoint for non-zero exponential buckets.
decode_column
Decodes every row of a Binary/BinaryView column; NULL rows stay None.
estimate_quantile
Estimates the value at ratio (0..=1) of the distribution. None when the histogram is empty.
is_otel_blob_type
True for the column types an encoded OTel histogram can arrive in.
native_or_otel_signature
Signature accepting the native histogram struct or an OTel histogram blob, followed by extra_args.