-
Notifications
You must be signed in to change notification settings - Fork 549
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
fix(amqplib)!: instrumentation produced high cardinality span names #2366
Conversation
This change amends the amqplib instrumentation so it adheres to span name conventions mentioned here https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#span-name
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2366 +/- ##
==========================================
- Coverage 90.97% 90.40% -0.57%
==========================================
Files 146 149 +3
Lines 7492 7361 -131
Branches 1502 1527 +25
==========================================
- Hits 6816 6655 -161
- Misses 676 706 +30
|
plugins/node/instrumentation-amqplib/test/amqplib-callbacks.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit, otherwise LGTM
plugins/node/instrumentation-amqplib/test/amqplib-callbacks.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I'll wait for a bit to let Amir, as component owner, to have a chance to review.
FWIW, the ... -> ${routingKey}
in the span.name dates back to the original commit: aspecto-io/opentelemetry-ext-js@e3bd5ea#diff-f1a7a2a54feb09ebd4bde5c788752e112f0d521fa6de4b05d725a887b2cf743dR305
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not reviewed this in full but it seems like it should be marked as a breaking change, even if it is technically a fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @cedricziel
overall LGTM, left 2 nit suggestions / concerns
Co-authored-by: Amir Blum <[email protected]>
plugins/node/instrumentation-amqplib/test/amqplib-callbacks.test.ts
Outdated
Show resolved
Hide resolved
Do you think it's breaking because someone might rely on the current name for some logic? |
Which problem is this PR solving?
This change amends the amqplib instrumentation so it adheres to span name conventions mentioned here https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#span-name
Ref: #2367
Short description of the changes
Ensure span name is low cardinality and uses a standard operation name
fixes: #2367