Skip to content

Commit ce6689f

Browse files
committed
add otel.instrumentation.r2dbc.statement-sanitizer.enabled
1 parent e8996a3 commit ce6689f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/main/java/io/opentelemetry/instrumentation/spring/autoconfigure/instrumentation/r2dbc/R2dbcInstrumentingPostProcessor.java

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public Object postProcessAfterInitialization(Object bean, String beanName) {
3333
if (bean instanceof ConnectionFactory && !ScopedProxyUtils.isScopedTarget(beanName)) {
3434
ConnectionFactory connectionFactory = (ConnectionFactory) bean;
3535
return R2dbcTelemetry.builder(openTelemetryProvider.getObject())
36-
// there is no instrumentation-specific property, so we use the common one
3736
.setStatementSanitizationEnabled(
3837
InstrumentationConfigUtil.isStatementSanitizationEnabled(
3938
configPropertiesProvider.getObject(),

instrumentation/spring/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@
291291
"description": "Enables the DB statement sanitization.",
292292
"defaultValue": true
293293
},
294-
295294
{
296295
"name": "otel.instrumentation.kafka.enabled",
297296
"type": "java.lang.Boolean",
@@ -372,7 +371,13 @@
372371
{
373372
"name": "otel.instrumentation.r2dbc.enabled",
374373
"type": "java.lang.Boolean",
375-
"description": "Enable the R2DBC (reactive JDBC) instrumentation. Also see <code>otel.instrumentation.common.db-statement-sanitizer.enabled</code>.",
374+
"description": "Enable the R2DBC (reactive JDBC) instrumentation.",
375+
"defaultValue": true
376+
},
377+
{
378+
"name": "otel.instrumentation.r2dbc.statement-sanitizer.enabled",
379+
"type": "java.lang.Boolean",
380+
"description": "Enables the DB statement sanitization.",
376381
"defaultValue": true
377382
},
378383
{

0 commit comments

Comments
 (0)