-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Incorrect "span_metrics_calls_total" Metric Value for SpanMetrics when Otel-Collector is Restarted #38262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The current spanmetrics stores recordings in memory, and after a restart, it will lose all previous recordings and reset the calls_total count. we need to backup the recordings on disk and recover it when collector restart |
@Frapschen @portertech is this something that you would like to address either via code or documentation? |
Component(s)
connector/spanmetrics
What happened?
Description
We are generating spanmetrics by running otel-collector as statefulset behind a loadbalancing exporter with
routing_key
asservice
. The value ofspan_metrics_calls_total
gives appropriate value until the time the collector is restarted. So, when we restart the collector, either thespan_metrics_calls_total
metric value shows a bump or a spike on the graph. This gives unpleasant impression that something is wrong in the service due to which calls are reduced or increased to the service.Steps to Reproduce
Send the traces to a LoadBalancing Exporter collector running as deployment, then forward the traces from the LoadBalancing collector to another collector running as statefulset. Use
routing_key
asservice
.Expected Result
The calls_total metric shouldn't show bump or spike when the otel-collector restarts.
Actual Result
Collector version
0.120.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: