Skip to content

Fix zipkin exporter translation bug#1149

Merged
codeboten merged 2 commits intoopen-telemetry:masterfrom
owais:fix-zipkin-exporter-translation
Sep 23, 2020
Merged

Fix zipkin exporter translation bug#1149
codeboten merged 2 commits intoopen-telemetry:masterfrom
owais:fix-zipkin-exporter-translation

Conversation

@owais
Copy link
Copy Markdown
Contributor

@owais owais commented Sep 23, 2020

Description

Zipkin exporter translation was setting otel.status_code attribute as
an integer which resulted in Otel collector rejecting the spans. This
commit casts the value to a string.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Manually
  • Manually

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been updated
  • Documentation has been updated

@owais owais force-pushed the fix-zipkin-exporter-translation branch 3 times, most recently from ae4a9d7 to a085664 Compare September 23, 2020 13:39
@owais owais marked this pull request as ready for review September 23, 2020 13:50
@owais owais requested a review from a team September 23, 2020 13:50
@owais owais force-pushed the fix-zipkin-exporter-translation branch from a085664 to 1762b74 Compare September 23, 2020 13:57
Copy link
Copy Markdown
Contributor

@codeboten codeboten 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 catching and fixing this, looks like some CI failures occurred, they don't appear to be related though so I triggered the build again.

Zipkin exporter translation was setting `otel.status_code` attribute as
an integer which resulted in Otel collector rejecting the spans. This
commit casts the value to a string.
@owais owais force-pushed the fix-zipkin-exporter-translation branch from 1762b74 to 541edab Compare September 23, 2020 15:10
@owais
Copy link
Copy Markdown
Contributor Author

owais commented Sep 23, 2020

@codeboten The lint job was timing out. Resolved on another force push.

@codeboten
Copy link
Copy Markdown
Contributor

Thanks @owais!

@codeboten codeboten merged commit b8a8016 into open-telemetry:master Sep 23, 2020
@owais owais deleted the fix-zipkin-exporter-translation branch September 23, 2020 15:51
alertedsnake pushed a commit to alertedsnake/opentelemetry-python that referenced this pull request Sep 25, 2020
…1149)

Zipkin exporter translation was setting `otel.status_code` attribute as
an integer which resulted in Otel collector rejecting the spans. This
commit casts the value to a string.
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