You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error gathering metrics: collected metric http_server_duration_milliseconds
label:{name:"http_flavor" value:"1.1"}
label:{name:"http_method" value:"GET"}
label:{name:"http_route" value:"/v1/products"}
label:{name:"http_scheme" value:"http"}
label:{name:"http_status_code" value:"200"}
label:{name:"job" value:"my-service"}
label:{name:"net_host_name" value:"localhost"}
label:{name:"net_host_port" value:"5003"}
histogram:{sample_count:49 sample_sum:898.520958
bucket:{cumulative_count:0 upper_bound:0}
bucket:{cumulative_count:0 upper_bound:5}
bucket:{cumulative_count:0 upper_bound:10}
bucket:{cumulative_count:46 upper_bound:25}
bucket:{cumulative_count:47 upper_bound:50}
bucket:{cumulative_count:48 upper_bound:75}
bucket:{cumulative_count:49 upper_bound:100}
bucket:{cumulative_count:49 upper_bound:250}
bucket:{cumulative_count:49 upper_bound:500}
bucket:{cumulative_count:49 upper_bound:750}
bucket:{cumulative_count:49 upper_bound:1000}
bucket:{cumulative_count:49 upper_bound:2500}
bucket:{cumulative_count:49 upper_bound:5000}
bucket:{cumulative_count:49 upper_bound:7500}
bucket:{cumulative_count:49 upper_bound:10000}
} has help "Measures the duration of inbound HTTP requests." but should have "The duration of the inbound HTTP request"
This is caused by the difference between descriptions exposed by opentelemetry-instrumentation-http ('Measures the duration of inbound HTTP requests.') and nestjs-otel ('The duration of the inbound HTTP request').
Should the description defined in nestjs-otel match some sort standard convention?
The text was updated successfully, but these errors were encountered:
After further digging it turns out there's already a bug reported in OpenTelemetry repository.
I've also found the document describing Semantic Conventions for HTTP metrics which I believe this ticket is about? Here's the migration plan for already existing traces and metrics.
When the module is configured to expose api metrics:
and when
getNodeAutoInstrumentations
is used:OpenTelemetry Collector Prometheus exporter throws the following error (broken down into multiple lines for readability):
This is caused by the difference between descriptions exposed by opentelemetry-instrumentation-http (
'Measures the duration of inbound HTTP requests.'
) and nestjs-otel ('The duration of the inbound HTTP request'
).Should the description defined in
nestjs-otel
match some sort standard convention?The text was updated successfully, but these errors were encountered: