Skip to content

Commit d4d2658

Browse files
committed
pr review
1 parent 2f806b9 commit d4d2658

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/incubator/src/main/java/io/opentelemetry/api/incubator/config/ConfigProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface ConfigProvider {
4040
* @param name the name of the instrumentation
4141
* @return the {@link DeclarativeConfigProperties} for the given instrumentation name
4242
*/
43-
default DeclarativeConfigProperties get(String name) {
43+
default DeclarativeConfigProperties getJavaInstrumentationConfig(String name) {
4444
DeclarativeConfigProperties config = getInstrumentationConfig();
4545
if (config == null) {
4646
return empty();

sdk-extensions/autoconfigure/src/testIncubating/java/io/opentelemetry/sdk/autoconfigure/DeclarativeConfigurationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ void configFile_ConfigProvider() {
233233
.satisfies(exampleConfig -> assertThat(exampleConfig.getString("key")).isEqualTo("value"));
234234

235235
// shortcut to get specific instrumentation config
236-
assertThat(globalConfigProvider.get("example").getString("key")).isEqualTo("value");
236+
assertThat(globalConfigProvider.getJavaInstrumentationConfig("example").getString("key"))
237+
.isEqualTo("value");
237238
}
238239
}

0 commit comments

Comments
 (0)