Skip to main content

Module otlp

Module otlp 

Source
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§

OtlpMetricNames
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.