-
Notifications
You must be signed in to change notification settings - Fork 89
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
Update Symfony Messenger instrumentation to use SpanKind::KIND_PRODUCER, SpanKind::KIND_CONSUMER #1314 #304
Conversation
…ER and KIND_CONSUMER
Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #304 +/- ##
=========================================
Coverage 80.33% 80.33%
Complexity 1026 1026
=========================================
Files 98 98
Lines 4114 4114
=========================================
Hits 3305 3305
Misses 809 809
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
Friendly ping on this @brettmc good to go? |
@brettmc thank you for the feedback. Any further updates please or is this good to go? |
Noticed some CI tests failures though, but are unrelated to this issue.🤔 I may be wrong, but I'm guessing this can be merged and those looked at separately, right? @brettmc |
Yes, those failures are unrelated and won't affect this PR. |
I agree with the sentiment of this PR - I introduced the INTERNAL spans, because I added instrumentation for ext-amqp in addition to this one that would create the relevant PRODUCER spans. I wonder if this PR should also address this possible span duplication by modifying the ext-amqp instrumentation to enrich the spans created here? |
Thank you for your feedback! @cedricziel I agree that modifying the ext-amqp instrumentation to enrich the spans created here would be a valuable enhancement to avoid span duplication. However, I believe this could be addressed as a separate issue to keep the scope of this PR focused on resolving the KIND_PRODUCER instrumentation for dispatch and send. I’m happy to open a new issue to track this work and contribute to implementing it once this PR is merged. Let me know if that approach works for you! @brettmc would love to hear your thoughts too |
This implements instrumentation for the Symfony Messenger component in the OpenTelemetry PHP SDK. It fixes the spanKind label to follow https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#span-kind for both the dispatch and send methods, allowing for better tracing and monitoring of message handling within Symfony applications.
This PR addresses Issue regarding the need for appropriate span kinds and attributes for message processing in the Symfony Messenger. @brettmc
Closes: open-telemetry/opentelemetry-php#1314