-
Notifications
You must be signed in to change notification settings - Fork 848
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 otel.instrumentation.http.server.add-server-attributes #6520
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6520 +/- ##
============================================
- Coverage 90.65% 90.57% -0.09%
Complexity 6227 6227
============================================
Files 678 678
Lines 18659 18676 +17
Branches 1842 1843 +1
============================================
Hits 16915 16915
- Misses 1187 1203 +16
- Partials 557 558 +1 ☔ View full report in Codecov by Sentry. |
can you explain what problem this is solving? thanks |
@@ -448,6 +453,25 @@ public AutoConfiguredOpenTelemetrySdk build() { | |||
|
|||
if (sdkEnabled) { | |||
SdkMeterProviderBuilder meterProviderBuilder = SdkMeterProvider.builder(); | |||
if (config.getBoolean("otel.instrumentation.http.server.add-server-attributes", false)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this belongs in our core SDK autoconfigure. This looks to be an instrumentation-specific option. Let's talk about the right place for this configuration in a SIG meeting.
We've added the first instrumentation configuration options in file configuration here: open-telemetry/opentelemetry-configuration#91 Separately, this does not belong as a core SDK configuration. |
@zeitlinger is there any reason to keep this open, given that both maintainers do not believe this is appropriate to build into the core repo? |
No |
Background:
server.address
andserver.port
forhttp.server.request.duration
Alternatives:
otel.metrics.opt-in=http.server.request.duration=server.address;server.port
;
is a bit odd, but,
is already used to have entries for multiple metrics