From f6520008c5ecf3c9a4ccdcdc506783827dd787b9 Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Mon, 11 Mar 2024 12:28:21 +0100 Subject: [PATCH] use otel.resource.providers.<>.enabled --- .../tooling/config/ResourceProviderPropertiesCustomizer.java | 2 +- .../config/ResourceProviderPropertiesCustomizerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizer.java b/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizer.java index c2a01156f1c2..47e4e3a12069 100644 --- a/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizer.java +++ b/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizer.java @@ -63,7 +63,7 @@ Map customize(ConfigProperties config) { String providerGroup = providerEntry.getValue(); Boolean explictEnabled = config.getBoolean( - String.format("otel.instrumentation.resource-provider.%s.enabled", providerGroup)); + String.format("otel.resource.providers.%s.enabled", providerGroup)); if (isEnabled(providerName, enabledProviders, explictEnabled)) { enabled.add(providerName); diff --git a/javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizerTest.java b/javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizerTest.java index b82fa8ea4e85..f09401f53b5e 100644 --- a/javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizerTest.java +++ b/javaagent-tooling/src/test/java/io/opentelemetry/javaagent/tooling/config/ResourceProviderPropertiesCustomizerTest.java @@ -115,7 +115,7 @@ Stream enabledTestCases() { if (tc.explicitEnabled != null) { props.put( - "otel.instrumentation.resource-provider.test.enabled", + "otel.resource.providers.test.enabled", Boolean.toString(tc.explicitEnabled)); }