-
Notifications
You must be signed in to change notification settings - Fork 533
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
Span Id with all zeros cause index out of range #4573
Comments
The panic starts here b/c the binary package assumes a slice length when you call the Can you check compactors/ingesters/queriers to see if you're getting anything similar? |
In the logs I'm not seeing any panics on ingestion or compacting. Calling the I think it would be best to fix it on ingestion |
As an aside are you sure the span you are pushing is all 0s? Is the id perhaps an empty slice? I think we should do a quick fix to patch up the panic and make a longer term issue to handle an empty/all 0's span id on the write path. I'm not sure what the correct behavior there is. wdyt? |
I've created this poc
IMO all 0s spanID should be treated as invalid, and return an error |
Tempo behavior is bound to a strange mix of common sense and the OTel spec. I cannot find anywhere in the spec that saying that an all 0s span id is invalid so I'm inclined to consume and store it. |
Describe the bug
When Tempo queries for a traces that contains a span_id
0000000000000000
cause
panic serving 172.23.0.3:47754: runtime error: index out of range [7] with length 0
To Reproduce
Steps to reproduce the behavior:
/v1/traces
endpoint a that contains a span with a span_id0000000000000000
Expected behavior
Tempo should return an error if this against the OTEL spec
Environment:
Additional Context
panic_output.log
tempo config
The text was updated successfully, but these errors were encountered: