-
Notifications
You must be signed in to change notification settings - Fork 95
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
KIND::CONSUMER instrumentation implemented #307
base: main
Are you sure you want to change the base?
Conversation
…ER and KIND_CONSUMER
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #307 +/- ##
============================================
- Coverage 85.87% 80.41% -5.46%
+ Complexity 1081 592 -489
============================================
Files 73 43 -30
Lines 4480 2211 -2269
============================================
- Hits 3847 1778 -2069
+ Misses 633 433 -200
Flags with carried forward coverage won't be shown. Click here to find out more. see 56 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
return new LegacyInMemoryTransport(); | ||
} | ||
|
||
protected function getReceiver() |
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.
is this different enough from getTransport
to require a method? It doesn't return a receiver but a transport...
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.
@RichardChukwu have you had any time to look further into this?
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.
Hey @ChrisLightfootWild, thanks for asking.
Not really, I'll appreciate any assistance please
$builder = $instrumentation | ||
->tracer() | ||
->spanBuilder(\sprintf('DISPATCH %s', $messageClass)) | ||
->setSpanKind(SpanKind::KIND_PRODUCER) | ||
->spanBuilder(\sprintf('publish %s', $messageClass)) |
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.
Why not "dispatch"?
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.
The span types and names should be consistent with the spec here:
https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#span-kind
But it's kind of confusing TBH, it mentions both "publish" and "send", in the example it gives publish shop.orders
, but then it doesn't give publish
in operation type or span kind. 🤯
@brettmc can you clarify the spec wording here maybe?
Fixes #1314
Related #304
-Added the "consume" operation with SpanKind::KIND_CONSUMER for receiving messages.
-Updated span names to use publish, send, and consume as per the spec, ensuring naming consistency for operations.
-Instrumented the SenderInterface for both sending and receiving spans, with the appropriate SpanKind (producer for sending and consumer for receiving).