-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
The trace_id/span_id of exemplar would not change when using promethuesremotewrite exporter #30830
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for connector/spanmetrics: @portertech. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi, When I look at prometheus, each of the exemplars have different spans and trace ids. Do you have any more details on your setup, or can you try using something like telemetrygen to generate your traces to rule out your data? |
@ankitpatel96 Hi, I am using v0.91.0 otel-collector, and I have a service that generates traces and span. I have fixed it locally because I debugged into to pkg/translator/prometheusremotewrite/helper.go getPromExemplars method just appends new exemplar to the slice, but promethues will always pick up the first exemplar of the slice. |
Thanks for the response! Can you clarify the problem? Is span metrics working as expected? Is the problem with prometheus or in the prometheusremotewrite exporter? I glanced through the prometheus codebase and at a first glance (I really could be wrong) prometheus does read through all the exemplars. https://github.com/prometheus/prometheus/blob/d699dc3c7706944aafa56682ede765398f925ef0/storage/remote/write_handler.go#L140-L147 |
@ankitpatel96 Hi, it is the prometheusremotewrite exporter. Prometheus exporter works fine. Yes, you can see my screen shots that span metrics works fine but with prometheusremotewrite exporter, the mimir/prometheus can only picked up the first element in the exemplars slice no matter how many times I start new traces. I try to modify the source code, that only pickup the last exemplar. Then it get solved |
Have you filed a ticket with mimir? Sounds like a bug in their system rather than the prometheus remotewrite exporter? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
exporter/prometheusremotewrite
What happened?
Description
when I use the spanmetrics connector, the trace_id/span_id of exemplar would not change if I use the promethuesremotewrite exporter directly write into backend prometheus/mimir
Steps to Reproduce
Simply start a demo to produce traces to otel collector
Expected Result
trace_id and span_id of the exemplar should change if I start a new trace
Actual Result
trace_id/span_id would always be the same, and the only way to is to restart otel collector
Collector version
v0.91.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
kubernetes 1.25
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: