-
Notifications
You must be signed in to change notification settings - Fork 23
make edot sampler default instead of forcing it on #841
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
|
Central config handling needs to output a warning when sampling rate is changed and the sampler isn't the dynamic handling one |
|
Thanks @jackshirazi - since the SDK isn't exposed in a way for something like |
|
That's too fragile, any touch from future maintenance to the class would result in the wrong state. We have ConfigLoggingAgentListener which is triggered after the agent is fully configured. You can test there, eg add |
|
Ah good call, that's more clear. I went with checking in the existing |
| public static final String LOG_THE_CONFIG = | ||
| "elastic.otel.java.experimental.configuration.logging.enabled"; | ||
|
|
||
| public static volatile boolean enableDynamicSamplingRate = 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.
this should be private, with a public getter
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.
Good call, fixed
jackshirazi
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.
Thank you for this improvement!
This updates to the proposal for sampler behavior for EDOT.
/cc @trentm