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.
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.providersconfig. However there are too manyResourceProviderimplementations I want to disable.Describe the solution you'd like
I want to add a config key
otel.java.enabled.resource.providersthat just configureResourceProviderwhat 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.