Closed
Description
A lot of instrumentations use very similar configuration options such as OTEL_PYTHON_<instrumentation>_TRACED_REQUEST_ATTRS
or OTEL_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:
cfg = Configuration()
traced_method = cfg.traced_methods("django")
excluded_urls = cfg.excluded_urls("django")