-
Notifications
You must be signed in to change notification settings - Fork 1k
Config property util cleanup #15809
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
base: main
Are you sure you want to change the base?
Config property util cleanup #15809
Conversation
dcf6adf to
a510da4
Compare
| // this test uses reflection to access fields generated by FieldBackedProvider | ||
| // internal-reflection needs to be disabled because it removes these fields from reflection results. | ||
| jvmArgs("-Dotel.instrumentation.internal-reflection.enabled=false") | ||
| jvmArgs("-Dotel.javaagent.internal-reflection.enabled=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 get why you'd want to introduce a special property for this instead of using the standard instrumentation disabling flag.
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.
This is a setting that must use properties even when declarative config is used - because it's needed at an early phase.
Since declarative config uses a different approach, it would be confusing to keep the same syntax.
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 still don't quite get why the standard way of disabling the instrumentations wouldn't work. Is it because of reading the property in AgentCachingPoolStrategy? If so I think reading the property there isn't really needed, it allows skipping a check, but that check is cheap anyway.
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.
yes, it's because of that check
| * This class is internal and is hence not for public use. Its APIs are unstable and can change at | ||
| * any time. | ||
| */ | ||
| public final class DeprecatedLibraryConfigPropertiesUtil { |
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 see what we gain from this change.
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 allows the methods to be deprecated - this has caused some confusion in a previous PR
@trask fyi
…d to otel.javaagent.testing.thread-propagation-debugger.enabled
…gent.testing.internal-reflection.enabled
48d8630 to
508c0dc
Compare
Fixes #15807