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

Set the annotation name to the same as the event name if the attributes are empty #16

Conversation

making
Copy link
Contributor

@making making commented Sep 17, 2024

Following "OpenTelemetry to Zipkin Transformation", I set the annotation name, but I found that if event's attributes is empty, it is meaningless and inconvenient as attached. In this PR, if attributes is empty, the event name is used as the annotation name.

image

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.

looks better

@codefromthecrypt
Copy link
Contributor

some test fuzz yet

@making
Copy link
Contributor Author

making commented Sep 17, 2024

oops, fixed

@codefromthecrypt codefromthecrypt merged commit e4c31d3 into openzipkin-contrib:main Sep 18, 2024
2 checks passed
@making making deleted the annotation-name-if-event-attributes-is-empty branch September 18, 2024 07:00
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