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

Export resource attributes from zipkin exporter #2589

Merged
merged 5 commits into from
Feb 9, 2022

Conversation

tttanikawa
Copy link
Contributor

@tttanikawa tttanikawa commented Feb 8, 2022

resolves #2588

This PR enables the zipkin exporter to export Resource attributes as Tags.
I modified some test cases to check Resource attributes to be exported, and all tests passed.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 8, 2022

CLA Signed

The committers are authorized under a signed CLA.

exporters/zipkin/model.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MrAlias MrAlias 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 contribution. I think the approach to add tags looks good. Please unify the attribute conversion like @Aneurysm9 suggested.

CHANGELOG.md Outdated Show resolved Hide resolved
tttanikawa and others added 2 commits February 9, 2022 01:54
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
@tttanikawa
Copy link
Contributor Author

Thank you for the review.
I extracted the attribute conversion into the helper function.

@codecov
Copy link

codecov bot commented Feb 8, 2022

Codecov Report

Merging #2589 (bd46e7e) into main (10b58d6) will increase coverage by 0.0%.
The diff coverage is 62.5%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2589   +/-   ##
=====================================
  Coverage   76.2%   76.2%           
=====================================
  Files        173     173           
  Lines      12229   12238    +9     
=====================================
+ Hits        9319    9328    +9     
  Misses      2667    2667           
  Partials     243     243           
Impacted Files Coverage Δ
exporters/zipkin/model.go 94.6% <62.5%> (+0.2%) ⬆️

@MrAlias MrAlias merged commit 9f42a81 into open-telemetry:main Feb 9, 2022
@MrAlias MrAlias mentioned this pull request Feb 10, 2022
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

Export Resource attributes from the zipkin exporter
4 participants