-
Notifications
You must be signed in to change notification settings - Fork 923
Customizer for SdkTracerProviderBuilder #4004
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4004 +/- ##
============================================
+ Coverage 90.12% 90.19% +0.07%
+ Complexity 4390 4381 -9
============================================
Files 518 518
Lines 13341 13314 -27
Branches 1278 1277 -1
============================================
- Hits 12024 12009 -15
+ Misses 911 903 -8
+ Partials 406 402 -4
Continue to review full report at Codecov.
|
|
Thanks for helping @radcortez - sorry for not being clear. Instead of a knob only for id generator, which would require lots of duplicated knobs, I was thinking just |
Sure, I'll update this. |
.../src/main/java/io/opentelemetry/sdk/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java
Show resolved
Hide resolved
.../src/main/java/io/opentelemetry/sdk/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java
Show resolved
Hide resolved
sdk/trace/src/main/java/io/opentelemetry/sdk/trace/SdkTracerProviderBuilder.java
Outdated
Show resolved
Hide resolved
anuraaga
left a comment
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.
Sorry I didn't notice 12c4825 had been added here when approving - can we go ahead and keep them separate PRs?
Sorry if I was too unclear, we want to add the knob on https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java, not this one. The SDK should not itself register any shutdown hooks, that's only autoconfiguration.
|
Sure, sorry. I'll do that tomorrow. |
...re-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java
Outdated
Show resolved
Hide resolved
io.opentelemetry.sdk.autoconfigure.spi.traces.SdkTracerProviderConfigurer
Deprecated Use AutoConfigurationCustomizer.addTracerProviderCustomizer(BiFunction).
This dep notice was not super clear on remediation advice. These changes
are based on the update[1] to the otel-java-instrumentation's own demo
distribution to address the deprecation.
The autoconfiguration customizer was introduced to otel-java 1.11.0[2]
via #4004[3].
[1] https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/5574/files
[2] https://github.com/open-telemetry/opentelemetry-java/releases/tag/v1.11.0
[3] open-telemetry/opentelemetry-java#4004
* get a LoggingSpanExporter via create()
The constructor LoggingSpanExporter() is deprecated.
io.opentelemetry.exporter.logging.LoggingSpanExporter.LoggingSpanExporter()
Deprecated Use create().
OK.
* change our autoconfig via SPI over to the new way
io.opentelemetry.sdk.autoconfigure.spi.traces.SdkTracerProviderConfigurer
Deprecated Use AutoConfigurationCustomizer.addTracerProviderCustomizer(BiFunction).
This dep notice was not super clear on remediation advice. These changes
are based on the update[1] to the otel-java-instrumentation's own demo
distribution to address the deprecation.
The autoconfiguration customizer was introduced to otel-java 1.11.0[2]
via #4004[3].
[1] https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/5574/files
[2] https://github.com/open-telemetry/opentelemetry-java/releases/tag/v1.11.0
[3] open-telemetry/opentelemetry-java#4004
Uh oh!
There was an error while loading. Please reload this page.