Expand description
OpenTelemetry metric payload helpers. OpenTelemetry metric payload helpers.
This module converts OTLP-style JSON metric exports into Poolsim workload inputs. It is shared by the CLI and web crates so OTLP metric-name handling, numeric datapoint extraction, and error reporting stay consistent.
Structs§
- Otlp
Metric Names - Metric-name mapping used to extract Poolsim workload values from OTLP JSON.
Constants§
- DEFAULT_
P50_ METRIC - Default p50 latency metric name used by OTLP import helpers.
- DEFAULT_
P95_ METRIC - Default p95 latency metric name used by OTLP import helpers.
- DEFAULT_
P99_ METRIC - Default p99 latency metric name used by OTLP import helpers.
- DEFAULT_
RPS_ METRIC - Default request-rate metric name used by OTLP import helpers.
Functions§
- metric_
value - Extracts the first numeric datapoint from a named OTLP metric.
- workload_
from_ otlp_ json - Builds a workload from OTLP JSON metrics.