-
Notifications
You must be signed in to change notification settings - Fork 91
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
Add peer.service attribute to psr18 spans #303
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
============================================
+ Coverage 80.33% 81.62% +1.29%
+ Complexity 1026 995 -31
============================================
Files 98 94 -4
Lines 4114 4050 -64
============================================
+ Hits 3305 3306 +1
+ Misses 809 744 -65
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
This change would apply to all http requests, which may or may not have a |
Looks like Java went with mapping services via This looks like it would suffer the same problem but was recently accepted: #302 |
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.
We should follow the Java SIG pattern here.
Removed my review - inadvertently approved. |
I think Java's approach is a great one to follow - and I also remember now that it's supported in yaml-based config: https://github.com/open-telemetry/opentelemetry-configuration/blob/main/examples/kitchen-sink.yaml#L384
Ugh, sorry I didn't think about that during review. Once we get a pattern we're happy with in this PR, can apply the same to Symfony... |
I will close this PR and work towards replicating the Java SIG solution. |
The peer.service attribute helps to relate traces between services. The attribute is defined in the semantic conventions: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/attributes-registry/peer.md?plain=1#L15
Add the peer.service attribute to the Psr18 spans that request known services.