-
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
net.peer.name in HTTP client semconv is both Required and also mentions "SHOULD NOT be set if" #3273
Comments
opentelemetry-specification/specification/trace/semantic_conventions/span-general.md Lines 141 to 149 in ec84e5d
I.e. if you know the url which happened to be It sounds complex, but I don't see a contradiction. [Edit] I do see a contradiction now (with the required attribute). I'm open to reducing complexity and using IP if name is not available (i.e. |
IMHO in the HTTP conventions This is even what you edited into the original PR description @lmolkova #2469 (comment):
Perhaps this should be clarified explicitly. Personally, I would even say that |
fwiw I think this is what the Java instrumentation does today (cc @laurit to correct me if that's not the case)
These are important for metrics, which I think makes them important for span-to-metrics pipelines. Also, having metric attributes always be a subset of span attributes makes unifying those signals behind a single "instrumentation api" simpler. |
Not Lauri but I'm pretty sure we're always using the logical address for |
Fixes #3273 ## Changes Clarifies that if an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then `net.peer.name` SHOULD be the IP address `x.x.x.x`.
) Fixes open-telemetry#3273 ## Changes Clarifies that if an HTTP client request is explicitly made to an IP address, e.g. `http://x.x.x.x:8080`, then `net.peer.name` SHOULD be the IP address `x.x.x.x`.
Currently
net.peer.name
is marked as Required, but in its description it also sayswhich seems contradictory.
Question: When an HTTP request is explicitly sent to an IP address, e.g.
http://x.x.x.x:8080
, should we be capturingnet.peer.name
ofx.x.x.x
? or not capturing anynet.peer.name
?cc @lmolkova @Oberon00
The text was updated successfully, but these errors were encountered: