Skip to content

Enable HTTP client query redaction by default in library instrumentation#16096

Merged
trask merged 2 commits intoopen-telemetry:mainfrom
trask:enabled-redaction-by-default-in-lib
Feb 5, 2026
Merged

Enable HTTP client query redaction by default in library instrumentation#16096
trask merged 2 commits intoopen-telemetry:mainfrom
trask:enabled-redaction-by-default-in-lib

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Feb 3, 2026

(it's already enabled by default in the Java agent)

@trask trask force-pushed the enabled-redaction-by-default-in-lib branch from 01625e1 to 3c75810 Compare February 3, 2026 16:54
Set<String> knownMethods = HttpConstants.KNOWN_METHODS;
ToIntFunction<Context> resendCountIncrementer = HttpClientRequestResendCount::getAndIncrement;
boolean redactQueryParameters;
boolean redactQueryParameters = true;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering whether this would be a breaking change if we had stable instrumentations? Or could we get away with it because it only affects an attribute value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this change would be acceptable even for stable instrumentation since it only redacts known sensitive parameters (and is essentially a security fix)

@trask trask marked this pull request as ready for review February 3, 2026 22:07
@trask trask requested a review from a team as a code owner February 3, 2026 22:07
@trask trask merged commit bcbc084 into open-telemetry:main Feb 5, 2026
85 checks passed
@trask trask deleted the enabled-redaction-by-default-in-lib branch February 5, 2026 01:38
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.

2 participants