-
Notifications
You must be signed in to change notification settings - Fork 545
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: dns plugin remove hostname attribute #488
Conversation
Codecov Report
@@ Coverage Diff @@
## main #488 +/- ##
==========================================
- Coverage 95.40% 95.40% -0.01%
==========================================
Files 144 144
Lines 8664 8661 -3
Branches 812 812
==========================================
- Hits 8266 8263 -3
Misses 398 398
|
Do we even want to save the looked up host as an attribute at all? This would be like saving the http response as an attribute for an HTTP span. I would maybe prefer to remove it entirely. There are no DNS semantic conventions at all because I think most instrumentations consider the DNS as a part of the HTTP/GRPC/etc request span rather than as an entirely separate operation to be traced. |
Interesting point. I tried to come up with some use cases for it, but had a hard time:
None of them is really convincing, maybe since the code is already there, adding an option to collect that attribute is a compromise? But I can also see this being removed.
The thing I like about having a dns instrumentation is the capability of splitting a HTTP/GDPR/... call into like the browser provides it. But since the hostname should be the same as |
I would honestly prefer to remove it. If someone needs it we can add it back later. In extreme cases the hostname can even be considered private information.
This seems like the perfect thing to take to the spec |
…y-js-contrib into dns-fix-hostname-attribute
…emetry-js-contrib into dns-fix-hostname-attribute
Agreed. I removed it for now. |
It would be nice to have a config option to include the hostname. |
And also a |
Which problem is this PR solving?
In the dns plugin the net.peer.name is used for the looked up hostname, which is not the peer we are connecting to (that would be the DNS server if a real lookup would be executed)
Short description of the changes