Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InstrumentationConfigUtilTest {
* href="https://github.com/open-telemetry/opentelemetry-configuration/blob/main/examples/kitchen-sink.yaml">kitchen-sink.yaml</a>.
*/
private static final String kitchenSinkInstrumentationConfig =
"instrumentation:\n"
"instrumentation/development:\n"
+ " general:\n"
+ " peer:\n"
+ " service_mapping:\n"
Expand Down Expand Up @@ -54,11 +54,11 @@ class InstrumentationConfigUtilTest {
private static final ConfigProvider kitchenSinkConfigProvider =
toConfigProvider(kitchenSinkInstrumentationConfig);
private static final ConfigProvider emptyInstrumentationConfigProvider =
toConfigProvider("instrumentation:\n");
toConfigProvider("instrumentation/development:\n");
private static final ConfigProvider emptyGeneralConfigProvider =
toConfigProvider("instrumentation:\n general:\n");
toConfigProvider("instrumentation/development:\n general:\n");
private static final ConfigProvider emptyHttpConfigProvider =
toConfigProvider("instrumentation:\n general:\n http:\n");
toConfigProvider("instrumentation/development:\n general:\n http:\n");

private static ConfigProvider toConfigProvider(String configYaml) {
OpenTelemetryConfigurationModel configuration =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void setup() throws IOException {
+ " - simple:\n"
+ " exporter:\n"
+ " console: {}\n"
+ "instrumentation:\n"
+ "instrumentation/development:\n"
+ " general:\n"
+ " http:\n"
+ " client:\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class SdkConfigProvider implements ConfigProvider {
private SdkConfigProvider(OpenTelemetryConfigurationModel model) {
DeclarativeConfigProperties configProperties =
DeclarativeConfiguration.toConfigProperties(model);
this.instrumentationConfig = configProperties.getStructured("instrumentation");
this.instrumentationConfig = configProperties.getStructured("instrumentation/development");
}

/**
Expand Down
Loading