-
Notifications
You must be signed in to change notification settings - Fork 923
Description
Describe the bug
Enabling a resource provider using otel.java.enabled.resource.providers to configure providers disables all resource providers not explicitly specified in the list.
Steps to reproduce
Set -Dotel.java.enabled.resource.providers=io.opentelemetry.contrib.aws.resource.EksResourceProvider
What did you expect to see?
Expect to see my service with the configured service name
What did you see instead?
A service with service.name set to unknown_service:java. This is because EnvironmentResourceProvider is filtered out and any other provider not listed is filtered as well.
What version and what artifacts are you using?
Artifacts: opentelemetry-java
Version: 1.56.0
Environment
Compiler: OpenJDK Corretto-21.0.8.9.1
OS: Mac 24.6.0
Runtime: Corretto-21.0.8.9.1
Additional context
Add any other context about the problem here.
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.