Skip to content
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

Fixed debug field usage in zipkin exporter #549

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

owais
Copy link
Contributor

@owais owais commented Apr 3, 2020

Zipkin spec expects the debug field to be a boolean, not an integer. OpenTelemetry collector rejects spans exported by the Python Zipkin exporter with the following error message:

Traces cannot be uploaded; status code: 400, message json: cannot unmarshal number into Go struct field .debug of type bool

Zipkin data model confirms that the field should be a boolean here: https://zipkin.io/zipkin-api/

@owais owais requested a review from a team April 3, 2020 21:24
Zipkin spec expects the debug field to be a boolean, not an integer. OpenTelemetry collector rejects spans exported by the Python Zipkin exporter with the following error message:

```
Traces cannot be uploaded; status code: 400, message json: cannot unmarshal number into Go struct field .debug of type bool
```

Zipkin data model confirm that the field should be a boolean here: https://zipkin.io/zipkin-api/
Copy link
Member

@mauriciovasquezbernal mauriciovasquezbernal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. LGTM!

Copy link
Member

@c24t c24t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@c24t c24t merged commit 33a75d0 into open-telemetry:master Apr 4, 2020
@codefromthecrypt
Copy link
Contributor

sampled != debug though

https://github.com/openzipkin/b3-propagation

            if context.trace_flags.sampled:
                zipkin_span["debug"] = True

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants