-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat!(datadogexporter): added peer.service priority instead service.name #2817
feat!(datadogexporter): added peer.service priority instead service.name #2817
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2817 +/- ##
==========================================
- Coverage 91.60% 91.59% -0.01%
==========================================
Files 450 450
Lines 22191 22193 +2
==========================================
Hits 20327 20327
- Misses 1394 1395 +1
- Partials 470 471 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
672b1e6
to
d0ecf61
Compare
peer.service is a user-defined name for a service, which is conceptually the same as a service name. We should use it when defined and not service.name
d0ecf61
to
9f72d3c
Compare
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Hey @bogdandrutu @ericmustin could you help me here? Do I need to do something? |
@angeliski sorry for delay here, i didn't get any notifications on this. I think this change makes sense and fits the spec, lgtm |
@bogdandrutu could we merge this when there's a chance before next release is cut? |
…ame (#2817) peer.service is a user-defined name for a service, which is conceptually the same as a service name. We should use it when defined and not service.name That behavior is because datadog need to "separate" the service: Before: ![Screenshot from 2021-03-22 12-40-09](https://user-images.githubusercontent.com/1574240/112017047-03875000-8b0c-11eb-9265-c8f3763f48f0.png) After: ![Screenshot from 2021-03-22 12-41-18](https://user-images.githubusercontent.com/1574240/112017065-06824080-8b0c-11eb-8dce-6e8b048688bf.png) You can see, when we don't prioritize the `peer.service`, the whole operation is showed in the **main** service (GET request and SETEX operation). After we change, the exporter could create the separation between operations and give the correct attribution The [spec](https://github.com/open-telemetry/opentelemetry-specification/blob/a44d863edcdef63b0adce7b47df001933b7a158a/specification/trace/semantic_conventions/span-general.md#general-remote-service-attributes) says: > peer.service - The service.name of the remote service. SHOULD be equal to the actual service.name resource attribute of the remote service if any. So I think makes sense to change that behavior. I created a really simple implementation, so any feedback would be useful
Description:
peer.service is a user-defined name for a service, which is conceptually the same as a service name.
We should use it when defined and not service.name
That behavior is because datadog need to "separate" the service:
Before:
After:
You can see, when we don't prioritize the
peer.service
, the whole operation is showed in the main service (GET request and SETEX operation). After we change, the exporter could create the separation between operations and give the correct attributionThe spec says:
So I think makes sense to change that behavior.
I created a really simple implementation, so any feedback would be useful
Link to tracking Issue:
Testing: Unit Test