Skip to content

Add otel.java.enabled.resource.providers config key #4220

@wallezhang

Description

@wallezhang

Is your feature request related to a problem? Please describe.
In my case, I only need a few resource fields while so many resource fields are auto configured. More resource fields mean more storage space, and these fields don't care for my scenario.
I can only disable these auto configured resource fields by setting otel.java.disabled.resource.providers config. However there are too many ResourceProvider implementations I want to disable.

Describe the solution you'd like
I want to add a config key otel.java.enabled.resource.providers that just configure ResourceProvider what I want to enable. Enabled resource providers configuration takes precedence over disabled configuration.
If the enabled config key is not configured, all resource providers will be enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions