File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
package io .opentelemetry .instrumentation .spring .autoconfigure ;
7
7
8
8
import io .opentelemetry .api .OpenTelemetry ;
9
- import io .opentelemetry .api .incubator .config .ConfigProvider ;
10
9
import io .opentelemetry .api .incubator .config .GlobalConfigProvider ;
11
10
import io .opentelemetry .api .trace .TracerProvider ;
12
11
import io .opentelemetry .instrumentation .api .incubator .config .internal .InstrumentationConfig ;
@@ -132,6 +131,12 @@ public OpenTelemetry openTelemetry(
132
131
return autoConfiguredOpenTelemetrySdk .getOpenTelemetrySdk ();
133
132
}
134
133
134
+ @ Bean
135
+ public InstrumentationConfig instrumentationConfig (
136
+ ConfigProperties properties ) {
137
+ return new ConfigPropertiesBridge (properties );
138
+ }
139
+
135
140
/**
136
141
* Expose the {@link ConfigProperties} bean for use in other auto-configurations.
137
142
*
@@ -180,15 +185,10 @@ public OpenTelemetry openTelemetry(
180
185
return null ;
181
186
}
182
187
183
- @ Bean
184
- public ConfigProvider configProvider (OpenTelemetryConfigurationModel model ) {
185
- return SdkConfigProvider .create (model );
186
- }
187
-
188
188
@ Bean
189
189
public InstrumentationConfig instrumentationConfig (
190
- ConfigProperties properties , ConfigProvider configProvider ) {
191
- return new ConfigPropertiesBridge (properties , configProvider );
190
+ ConfigProperties properties , OpenTelemetryConfigurationModel model ) {
191
+ return new ConfigPropertiesBridge (properties , SdkConfigProvider . create ( model ) );
192
192
}
193
193
194
194
/**
You can’t perform that action at this time.
0 commit comments