-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rename root span name to concisely identifies the work represented by the Span #1676
Comments
@rogercoll I think this is a great point and we should definitely raise it to the envoy repo. |
@rogercoll do you think that would be the way to solve this? |
I think it is related but not the same, in our case we would like to have a better name for the root spans. The actual attributes are fine, although as more aligned to SemConv the better 😄 I will try to find some time to play around the |
Ah, true, that's for the attributes and not span name 🙃 |
@joaopgrassi as you were the last one from the OTel community to change envoy, do you think this would be something you could help us? We have discussed in the SIG meeting and we would love to have that solved upstream instead of using a transform processor on the Collector. |
@rogercoll I got it all wrong 🤦🏽 I have just discussed that case with @joaopgrassi and even though what you mentioned before is valid: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.33.0/specification/trace/api.md#span Usually the client doesn't know about all the endpoints available on the server and having This is what we have in the SemConv for HTTP: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name. @joaopgrassi also shared this PR with me: open-telemetry/semantic-conventions#675, which would allow us to define a low-cardinality route/path. This seems to be available as an experimental semconv: https://github.com/open-telemetry/opentelemetry-js/blob/b78fec34060f15499c1756fd966f745262e148d9/semantic-conventions/src/experimental_attributes.ts#L6872 But I can't see a way of implementing it without adding a lot of boilerplate code to the frontend. Any ideas? |
Do you guys know which http instrumentation the frontend service uses? Most likely the HTTP client instrumentation is the one that has to implement such thing. Maybe we can ask the JS folks to see if they have anything planned. |
The The auto-instrumentation package uses the auto-fetch package to retrieve and generate the corresponding http attributes: https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-fetch
That would be great, I reckon this issue is not only specific to the Demo but a broader one. If the |
Feature Request
Is your feature request related to a problem?
HTTP generated spans contain a too general name which does not help to identify and monitor the whole lifecycle. For example, the
frontend-web
service only generate two spans namedHTTP GET
andHTTP POST
for all the queries it performs. As the API defines, we should provide a more human-readable name for root spans, which might include additional information like the URL path.Sample
frontend-proxy
span:Describe the solution you'd like:
Provide a more concisely name for root spans. For example, the previous span could be named
images
instead.cc @davidgeorgehope
The text was updated successfully, but these errors were encountered: