-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add request hostname to span name #305
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening your first pull request! If you haven't yet signed our Contributor License Agreement (CLA), then please do so that we can accept your contribution. A link should appear shortly in this PR if you have not already signed one. |
|
This has come up before in various SIGs across the otel ecosystem, eg open-telemetry/opentelemetry-java-instrumentation#6526 and open-telemetry/opentelemetry-java-instrumentation#8339 The responses I've seen seem to boil down to "no, that's not what the spec says, here are some workarounds". The workarounds can include allowing developers to provide some custom logic to set the span name, or using a custom Span Processor or a collector component. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #305 +/- ##
============================================
- Coverage 80.33% 79.64% -0.70%
+ Complexity 1026 983 -43
============================================
Files 98 93 -5
Lines 4114 3812 -302
============================================
- Hits 3305 3036 -269
+ Misses 809 776 -33
Flags with carried forward coverage won't be shown. Click here to find out more. see 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Here's a half-baked idea. I'm currently working on enabling SDK configuration through SPI and wondering if we can use SPI to solve this problem... How about if we come up with a new API/SDK interface, say something like |
It would be useful to have an API interface to control this. Internally we have several Libraries (build from OpenAPI specs) that could build a better name, including the low-cardinality route information, but I could not see any way to do this within the current implementation. Falling back to using |
addresses open-telemetry/opentelemetry-php#1399