-
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
Zipkin exporter and collector do not agree on wire representation of status codes #14965
Comments
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 |
We don't seem to have a Zipkin code owner, it's unlikely that a maintainer is going to work on this. If a PR is sent, tag me and I'll gladly review it. |
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. |
@jonatan-ivanov, I think you expressed interest in Zipkin in the past. Would you be interested in taking a look at this one? |
@jpkrohling Thank you for thinking of me but now and in the near future I don't think I will have time to do this. |
**Description:** It looks like there was a difference in expectations when it came to parsing span status in tags, this looks to resolve this and provide backwards support for existing implementations **Link to tracking Issue:** Fixes #14965 **Testing:** Added new unit test to validate span status is correctly set. **Documentation:** NA
What happened?
Description
The Zipkin exporter and collector do not agree on wire representation of status codes. And neither of which are in line with the spec. (See open-telemetry/opentelemetry-go#3287)
The Zipkin exporter serializes status codes as
Unset
,Error
, andOk
:https://github.com/open-telemetry/opentelemetry-go/blob/5568a3072367bb8ac4d2d9e759e7deb5a975b9f5/exporters/zipkin/model.go#L211-L213
https://github.com/open-telemetry/opentelemetry-go/blob/d616df61f5d163589228c5ff3be4aa5415f5a884/codes/codes.go#L38-L42
However, the collector expects
STATUS_CODE_UNSET
,STATUS_CODE_OK
, orSTATUS_CODE_ERROR
, see here.Environment
opentelemetry-go v1.11.0
opentelemetry-collector-contrib v0.62.0
Steps To Reproduce
Using Grafana Tempo's local example:
Expected behavior
Status is correctly passed between exporter and collector.
Collector version
v0.62.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: