We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a422e commit 4a57c41Copy full SHA for 4a57c41
sdk/spring/spring-cloud-azure-starter-monitor/README.md
@@ -149,11 +149,11 @@ import io.opentelemetry.instrumentation.jdbc.datasource.OpenTelemetryDataSource;
149
public class DataSourceConfig {
150
151
@Bean
152
- public DataSource dataSource() {
+ public DataSource dataSource(OpenTelemetry openTelemetry) {
153
DataSourceBuilder dataSourceBuilder = DataSourceBuilder.create();
154
// Data source configurations
155
DataSource dataSource = dataSourceBuilder.build();
156
- return new OpenTelemetryDataSource(dataSource);
+ return new OpenTelemetryDataSource(dataSource, openTelemetry);
157
}
158
159
0 commit comments