-
Notifications
You must be signed in to change notification settings - Fork 867
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
Remove deprecated code #6501
Remove deprecated code #6501
Conversation
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.
Looks good. Distributions that haven't addressed the deprecation will have some exciting work ahead, huh? 🌶️ Anyway, deleting deprecated code is awesome!
AutoConfiguredOpenTelemetrySdkBuilder builder = | ||
AutoConfiguredOpenTelemetrySdk.builder() | ||
.setResultAsGlobal(true) | ||
.addPropertiesSupplier(config::getAllProperties); | ||
.addPropertiesSupplier(new ConfigurationFileLoader()); |
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.
.addPropertiesSupplier(new ConfigurationFileLoader()); | |
.addPropertiesSupplier(ConfigurationFileLoader::new); |
❓
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.
Wouldn't that result in a Supplier<Supplier<Map<String, String>>>
?
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.
Yeah, you're right. Ignore me.
static final String CONFIGURATION_FILE_PROPERTY = "otel.javaagent.configuration-file"; | ||
|
||
@Override | ||
public Map<String, String> get() { |
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.
There's a fair amount going on in this method. I think it would be helpful to have some test coverage...but the current structure is a bit harder to test due to the static calls to ConfigPropertiesUtil.getString()
and the inline creation of file streams. Still, there are at least 5 untested branches....
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.
It is actually tested, in ConfigurationFileTest
.
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.
so nice to delete all of the config classes!
* Remove deprecated code * unnecessary semicolon * fix distro and extension examples
* Remove deprecated code * unnecessary semicolon * fix distro and extension examples
* Remove deprecated code * unnecessary semicolon * fix distro and extension examples
No description provided.