Skip to content

Commit

Permalink
add otel.instrumentation.r2dbc.statement-sanitizer.enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed May 17, 2024
1 parent c437955 commit 3c7bfd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public Object postProcessAfterInitialization(Object bean, String beanName) {
if (bean instanceof ConnectionFactory && !ScopedProxyUtils.isScopedTarget(beanName)) {
ConnectionFactory connectionFactory = (ConnectionFactory) bean;
return R2dbcTelemetry.builder(openTelemetryProvider.getObject())
// there is no instrumentation-specific property, so we use the common one
.setStatementSanitizationEnabled(
InstrumentationConfigUtil.isStatementSanitizationEnabled(
configPropertiesProvider.getObject(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@
"description": "Enables the DB statement sanitization.",
"defaultValue": true
},

{
"name": "otel.instrumentation.kafka.enabled",
"type": "java.lang.Boolean",
Expand Down Expand Up @@ -372,7 +371,13 @@
{
"name": "otel.instrumentation.r2dbc.enabled",
"type": "java.lang.Boolean",
"description": "Enable the R2DBC (reactive JDBC) instrumentation. Also see <code>otel.instrumentation.common.db-statement-sanitizer.enabled</code>.",
"description": "Enable the R2DBC (reactive JDBC) instrumentation.",
"defaultValue": true
},
{
"name": "otel.instrumentation.r2dbc.statement-sanitizer.enabled",
"type": "java.lang.Boolean",
"description": "Enables the DB statement sanitization.",
"defaultValue": true
},
{
Expand Down

0 comments on commit 3c7bfd5

Please sign in to comment.