-
Notifications
You must be signed in to change notification settings - Fork 576
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
Support WithSpanNameFormatter to otelecho #6363
Comments
Why would we need to create a custom span name? I feel that the instrumentation library should follow the semantic conventions the semantic conventions: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name. The user can always create a child span with a custom name. |
I would add: is this issue based on an actual need (could you describe it?), or is it just for parity with otelhttp? |
mark |
I’m new to opentelemetry and currently learning to integrate it with existing system. So my initial plan was to annotate the span name with some prefixes so the span name becomes Thanks for the pointer to the semantic conventions! I haven't gone through it. |
This is a very good choice. I am doing the same at the moment. And there are no problems at all. |
from: #6363 This change adjusts the default span name and does not support backward compatibility. --------- Co-authored-by: Damien Mathieu <[email protected]> Co-authored-by: Robert Pająk <[email protected]>
@pellared For this reason, we need to re-evaluate whether we need to add this feature. |
Problem Statement
otelecho
lacks support of custom span name formatter like one inotelhttp
.Proposed Solution
Add
WithSpanNameFormatter
option tootelecho
.Alternatives
Prior Art
opentelemetry-go-contrib/instrumentation/net/http/otelhttp/config.go
Lines 179 to 183 in 73c4165
Additional Context
The text was updated successfully, but these errors were encountered: