-
Notifications
You must be signed in to change notification settings - Fork 924
Add AutoConfigurationCustomizer#addPropertiesCustomizer() extension p… #4608
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 AutoConfigurationCustomizer#addPropertiesCustomizer() extension p… #4608
Conversation
9963ac1 to
27a4a40
Compare
Codecov Report
@@ Coverage Diff @@
## main #4608 +/- ##
============================================
- Coverage 90.06% 90.06% -0.01%
- Complexity 5063 5069 +6
============================================
Files 583 583
Lines 15629 15646 +17
Branches 1500 1501 +1
============================================
+ Hits 14077 14091 +14
- Misses 1098 1100 +2
- Partials 454 455 +1
Continue to review full report at Codecov.
|
jack-berg
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.
Just so I understand, the difference between this and addPropertiesSupplier(Supplier<Map<String, String>> is that this allows you to conditionally change properties based on the presence of some config in ConfigProperties?
.../src/main/java/io/opentelemetry/sdk/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java
Show resolved
Hide resolved
Yeah, that's exactly the point. |
...re-spi/src/main/java/io/opentelemetry/sdk/autoconfigure/spi/AutoConfigurationCustomizer.java
Show resolved
Hide resolved
|
Just a final gut-check: Are we ok with owning this API forever? We're adding it to a stable module, so the name, etc is going to be un-changable. |
|
I think its reasonable. It overlaps with |
…k/autoconfigure/AutoConfiguredOpenTelemetrySdkBuilder.java Co-authored-by: jack-berg <[email protected]>
b6e5e63 to
946423b
Compare
…oint
As described in open-telemetry/opentelemetry-java-instrumentation#6285 (comment) (and earlier in the SIG)
This is needed so that we can deprecate the
ConfigCustomizeragent SPI, and fully rely on the SDK SPIs to manipulate config.