Skip to content

Configuration class should have convenience methods to access common config options #1217

Closed
@owais

Description

@owais

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")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions