-
Notifications
You must be signed in to change notification settings - Fork 896
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
Define net.sock attributes and clarify logical net.peer|host.name attributes #2614
Conversation
/cc @Oberon00 I made the first stab at One thing I didn't figure out yet is the relationship between Transport currently is a closed set, address families are not (and different sets on win and linux). I'd propose the following on '
Then LMK what you think. |
I didn't have time to think about the net.transport question yet, but I noticed one thing: There is no replacement for net.peer.name yet, and also the definition in the "net.*.name" section has not changed yet to address the logical peer change:
With the new definition, we don't know if we actually connect to the logical peer, I don't think a more precise definition than "logical peer" can be provided on the generic level, maybe just a note that semantic conventions that want this to be set SHOULD define more precisely what it means for them. I also think that net.peer.ip does not make sense anymore, there should probably only be net.sock.peer.addr. |
I think we wanted to use it instead of |
6a20e52
to
a5ddee9
Compare
@Oberon00 I think I addressed your feedback. I'm not sure if renaming |
b2f2024
to
40c9728
Compare
I'm not talking about renaming the existing net.peer.name, but about adding an additional attribute, e.g. net.sock.peer.name that would then correspond to net.sock.peer.addr (net.peer.name does not necessarily do that anymore). |
@Oberon00 what would |
Exactly. This is how I understood the net.peer.ip/name attributes originally. net.sock.peer.name would then be mostly IP-specific, just like net.peer.ip currently is. As I understand it, this PR will cause the following "reshuffling":
|
aa5f310
to
de2643d
Compare
@Oberon00 thank you for the feedback! I believe I addressed it and this PR now is ready for review. |
@Oberon00 I believe I resolved your feedback, can you please take another look? |
@trask thanks a lot for the feedback and the prototype! @carlosalberto, can you please take another look? Thanks! |
@open-telemetry/specs-approvers Last call for feedback. |
Fixes #2607
Changes
net.peer.ip
->net.sock.peer.addr
,net.host.ip
->net.sock.host.addr
net.peer.name
is renamed tonet.sock.peer.addr
. For other instrumentations,net.peer.name
semantics didn't change.net.peer|host.name
and port attributes as logical ones representing final destination.Related issues #2469