Define net.sock attributes and clarify logical net.peer|host.name attributes#2614
Define net.sock attributes and clarify logical net.peer|host.name attributes#2614reyang merged 15 commits intoopen-telemetry:mainfrom
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.addrnet.peer.nameis renamed tonet.sock.peer.addr. For other instrumentations,net.peer.namesemantics didn't change.net.peer|host.nameand port attributes as logical ones representing final destination.Related issues #2469