Skip to content

Commit a206ef5

Browse files
committed
Add sqlcommenter option to jdbc metadata
1 parent 3cdde20 commit a206ef5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

instrumentation/jdbc/metadata.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ configurations:
2020
description: Enables experimental instrumentation to create spans for COMMIT and ROLLBACK operations.
2121
type: boolean
2222
default: false
23+
- name: otel.instrumentation.jdbc.experimental.sqlcommenter.enabled
24+
description: >
25+
Enables augmenting queries with a comment containing the tracing information. See
26+
[sqlcommenter](https://google.github.io/sqlcommenter/) for more info. WARNING: augmenting
27+
queries with tracing context will make query texts unique, which may have adverse impact on
28+
database performance. Consult with database experts before enabling.
29+
type: boolean
30+
default: false
2331
- name: otel.instrumentation.common.peer-service-mapping
2432
description: Used to specify a mapping from host names or IP addresses to peer services.
2533
type: map

0 commit comments

Comments
 (0)