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

Convert the last attribute into tags and count the number of dropped attributes, when attributes with a duplicate key are set #17

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

making
Copy link
Contributor

@making making commented Sep 18, 2024

OTEL's spec technically allows attributes to contain multiple same keys (I actually encountered this use case). If converted as is, an IllegalStateException occurs.
In this PR, if multiple same keys are added, the attribute will be used. This is the same behavior as when creating a Brave span. And dropped attributes are counted.

and count the number of dropped attributes,
when attributes with a duplicate key are set
@making making changed the title Convert the last key into tags and count the number of dropped attributes, when attributes with a duplicate key are set Convert the last attribute into tags and count the number of dropped attributes, when attributes with a duplicate key are set Sep 18, 2024
Copy link
Contributor

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

sgtm

@codefromthecrypt codefromthecrypt merged commit ed5e1f7 into openzipkin-contrib:main Sep 18, 2024
2 checks passed
@making making deleted the duplicate-key branch September 18, 2024 12:24
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.

2 participants