Skip to content

Use all installed resource detectors by default & remove OTEL_EXPERIMENTAL_RESOURCE_DETECTORS env var #4816

@bschoenmaeckers

Description

@bschoenmaeckers

Is your feature request related to a problem?

Currently we rely on the environment variable OTEL_EXPERIMENTAL_RESOURCE_DETECTORS to enable resource detectors. This unfortunately requires manual listing all installed resource detectors that are installed to enable them. Which does not have the usability comfort of other auto-instrumentation components.

Describe the solution you'd like

I would love to see that all detectors are enabled by default when installed like the instrumentation libraries.

Describe alternatives you've considered

setting OTEL(_EXPERIMENTAL)_RESOURCE_DETECTORS to all

An alternative option is to allow setting the env var to the value all. On which all resource detectors will be loaded.

Additional Context

No response

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions