Skip to content

Commit

Permalink
Add node for JDBC bind parameters in Java agent config (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermp authored Apr 2, 2023
1 parent 7f15014 commit bbdf4ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ The agent sanitizes all database queries/statements before setting the
`db.statement` semantic attribute. All values (strings, numbers) in the query
string are replaced with a question mark (`?`).

Note: JDBC bind parameters are not captured in `db.statement`. See
[the corresponding issue](https://github.com/open-telemetry/opentelemetry-java-instrumentation#7413)
if you are looking to capture bind parameters.

Examples:

- SQL query `SELECT a from b where password="secret"` will appear as
Expand Down
4 changes: 4 additions & 0 deletions static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,10 @@
"StatusCode": 200,
"LastSeen": "2023-02-20T07:46:04.5676-05:00"
},
"https://github.com/open-telemetry/opentelemetry-java-instrumentation#7413": {
"StatusCode": 200,
"LastSeen": "2023-04-02T03:56:48.635620148Z"
},
"https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases": {
"StatusCode": 200,
"LastSeen": "2023-02-20T07:55:52.073971-05:00"
Expand Down

0 comments on commit bbdf4ee

Please sign in to comment.