In this article
Track value scaling and unit metadata as separate transformations to detect missing or double conversion.
The diagnostic situation
A telemetry adapter changes a latency stream from milliseconds to seconds. The SDK already exports scaled values, but a dashboard retains its previous conversion. The chart shows an implausibly large improvement while request traces are unchanged. Another path changes only the unit label and leaves the numbers untouched. Both defects can survive a check that merely verifies metric presence.
Why the observation changes meaning
The OpenTelemetry data model includes metric units as identifying stream semantics; it does not mean that writing a new unit string automatically rescales values. Explicit histograms also carry boundaries, sums and observations that must agree in scale. A conversion applied at several independent layers can preserve syntactic validity while breaking the physical interpretation of the final result.
Define the instrumentation contract
Draw the path from measurement API through SDK, collector, storage query and display formatter. Assign exactly where numerical conversion occurs and where the unit is declared. Keep names and migration periods explicit so old and new streams are not merged without a rule. A dashboard display suffix is not sufficient evidence of the stored unit or actual conversion behavior.
A bounded verification procedure
Create synthetic durations with known source units and an independent expected representation. Export the old and proposed paths side by side. Compare scalar values, histogram boundaries and sum/count-derived means where available. Exercise the final dashboard query, not only the raw endpoint. Include a deliberately unchanged-unit control and a double-conversion fixture so the checker can distinguish both failures.
Evidence required for acceptance
Acceptance evidence includes source values, each transformation’s configuration, effective unit metadata and destination values. Preserve a migration table describing which historical population each query reads. Check alert thresholds independently from visual formatting. A favorable chart change must be explainable by correctly converted measurements; if direct request observations remain unchanged, retain that as evidence against a claimed serving speedup.
Failure cases and limits
This protocol does not establish measurement accuracy simply because units reconcile. Clock choice, observation boundaries and sample populations can still be wrong. Nor does it require changing every metric name when a display preference changes. Its purpose is to make physical scale and transformation ownership auditable, preventing a metadata migration from masquerading as an inference performance result.
Primary references and related reading
Track value scaling and unit metadata as separate transformations to detect missing or double conversion. OpenTelemetry metrics data model; OpenTelemetry metrics SDK.
The proposed investigation of latency unit double conversion is not an executed deployment benchmark. Related reading: OpenTelemetry GenAI: pin the semantic-convention version; Monotonic clocks for inference API latency measurements.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.