Alignment on duration metric units
#3265
drewrelmas
started this conversation in
Ideas
Replies: 1 comment
-
|
OTel semantic conventions recommend "seconds", but almost all critical ones like HTTP metrics has a line below that saying "must use custom Histogram buckets", and override the default buckets to "[ 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 ]".. (We don't support histogram yet, but once we do, the unit and buckets should align) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Duration metric units: should we standardize on seconds?
Our internal flow/duration metrics are emitted in nanoseconds (
unit = "ns"), while the Collector standardizes its duration telemetry on seconds (unit = "s",Doublehistograms). We should decide whether to align with the OpenTelemetry convention before more duration metrics are added in the repo.Background
The recently added flow duration metric is the trigger for this discussion:
otel-arrow/rust/otap-dataflow/crates/engine/src/flow_metrics.rs
Lines 40 to 47 in 3159ecb
This is consistent with the rest of our codebase, where ns is the dominant convention for internal durations.
The Collector emits processor duration as the following:
The Metrics semantic convention guide also suggests using seconds when talking about duration.
Options
Beta Was this translation helpful? Give feedback.
All reactions