-
Notifications
You must be signed in to change notification settings - Fork 651
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
Configuration class should have convenience methods to access common config options #1217
Comments
Thanks @lonewolf3739 |
@owais I was thinking it would be better to return an instance of
There is a problem here. This |
I don't see any glaring issues with that. May be configuration is the better module to host ExcludeList in the first place if we add the concept of excluded urls to the configuration class. Only concern would be if there are modules other than instrumentations that use ExcludeList today but don't use configuration. It might still be OK to add configuration as a dependency to such modules. |
A lot of instrumentations use very similar configuration options such as
OTEL_PYTHON_<instrumentation>_TRACED_REQUEST_ATTRS
orOTEL_PYTHON_<instrumentation>_EXCLUDED_URLS
. Each instrumentation duplicates code to read and parse these values using the Configuration class. It would be nice if the Configuration class had convenience methods for such common config options. It could look something like:The text was updated successfully, but these errors were encountered: