Skip to content

Add ability to customize span exception handling to instrumenter#18530

Open
jaydeluca wants to merge 7 commits intoopen-telemetry:mainfrom
jaydeluca:exception-sanitize
Open

Add ability to customize span exception handling to instrumenter#18530
jaydeluca wants to merge 7 commits intoopen-telemetry:mainfrom
jaydeluca:exception-sanitize

Conversation

@jaydeluca
Copy link
Copy Markdown
Member

@jaydeluca jaydeluca commented May 3, 2026

Fixes #8422 and is related to open-telemetry/opentelemetry-specification#3496 and #3039

I had originally experimented with using a ErrorCauseExtractor, but it had a limitation of not preserving the original exception type.

In terms of the implementations of the JDBC sanitization, it is similar to how node handles it as discussed in #8422 (comment), but it's not handled consistently across all their differnt database types

Implemented it on JDBC and lettuce, but it might make sense for others too if we think this is a reasonable approach

@jaydeluca jaydeluca marked this pull request as ready for review May 3, 2026 20:46
@jaydeluca jaydeluca requested a review from a team as a code owner May 3, 2026 20:46
This was referenced May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lettuce instrumentation does not sanitize password in exception message

1 participant