-
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
[clickhouseexporter]incorrect values of exemplar span id and trace id #31332
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @cezhang, I took a quick look and couldn't find anything obviously wrong either. Could you add the |
I think it might be the problem with clickhouse itself, see this example
but it's not the case i don't see anything regarding positionality (is that even a word?) of map keys in the docs, but I didn't search extensively Reported in ClickHouse/ClickHouse#60571 |
Thanks for the investigation @saitonakamura, very helpful! I'll keep this issue open for now, and we'll proceed depending on the result of the ClickHouse issue you've opened. |
Okay, looks like this is possibly a dbeaver issue. @cezhang, can you confirm you were using dbeaver? If so, we can close the issue here. |
I think the screenshot is from datagrip btw |
I'm gonna try to reproduce it again with otel and see if the issue is only with dbeaver and not clickhouse client |
I can confirm that clickhouse client reports the correct data
the issue might be the same for datagrip |
you can query keys explicitly:
https://fiddle.clickhouse.com/38ff4d0f-5840-4f90-baf7-3d45ba6f63ea |
@crobert-1 I do use datagrid, but seems not related to that in this case. |
@cezhang So from your last comment, it looks like the only error is in the It looks like this logic is actually in the metrics pipeline, and the ClickHouse DB create and insert commands are in this file. It still looks correct to me though, I'm not seeing how they could be exported in the wrong order. |
So far it only happens in |
@hanjm @dmitryax @Frapschen: Any idea how traceID and spanID could get switched around for the |
this line looks suspicious https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/clickhouseexporter/internal/histogram_metrics.go#L121C68-L121C77
In all other places the order is different: |
That caught my eye as well, but it looks like that's just the return order of the method being called (source). |
@cezhang can you double-check your two k8s clusters's otel collector version? this bug is fixed in https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.93.0 |
OMG, mine is 0.92. There is the cause. Thank you ! |
#30210 resolved this. 🤦 That makes so much more sense, thanks so much for the pointer @Frapschen! |
Component(s)
exporter/clickhouse
What happened?
Description
spanId and traceId are put in wrong column between each other
Steps to Reproduce
On my case, just use java agent to do auto instrumentation.
I check the source code of this exporter. It seems fine, probably somewhere go wrong with exemplar data.
Expected Result
The value of spanid and trace id should be swapped.
Actual Result
Collector version
0.9.2
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: