Replies: 2 comments 6 replies
-
hey @jamal, would you mind opening an issue for this in the specification repo? we would probably want to see the spec guidance for http client span names clarified to include this as a recommendation before making the change in this repo. |
Beta Was this translation helpful? Give feedback.
-
Hi, here is a link to the specification: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#span There is an example table which says that GET is too broad of a name. Here is an example from Elastic APM, which shows why is this a problem when interpreting results: https://i.stack.imgur.com/ibxuN.png |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all! I wanted to try to start a quick conversation around the HTTP client span names provided by most instrumentations today. I know that we need to strike a balance between something that is specific enough, but provides low cardinality, and is not taxing performance. But, most instrumentations today seem to just be providing
HTTP {method}
as the span name.I was wondering if it would make sense to include some additional information, such as the peer name, by default. I feel that this would at least allow for separation by external service which would provide far more valuable information. I noticed that in the base
HttpClientTracer
we are already using theURI
from the implementation to setnet.peer.name
. Would there be any reason to not use this to generate a more unique span name, such asHTTP {method} {hostname}
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions