Skip to content

refactor: honor send_default_pii in sentry-actix and sentry-tower #771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 17, 2025

Conversation

lcian
Copy link
Member

@lcian lcian commented Apr 16, 2025

Follows the spec defined here: https://develop.sentry.dev/sdk/expected-features/data-handling/.

When send-default-pii = true, then capture all headers.
When send-default-pii = false, filter out sensitive headers.
Also send non-json/form request bodies when send-default-pii=true, as that's allowed according to spec.

I've deprecated the old SentryHttpLayer::with_transaction constructor so that this is not a breaking change in terms of API.

@lcian lcian linked an issue Apr 16, 2025 that may be closed by this pull request
@lcian lcian merged commit 6f56832 into master Apr 17, 2025
18 checks passed
@lcian lcian deleted the lcian/ref/send-default-pii branch April 17, 2025 13:24
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.

Use ClientOption::send_default_pii everywhere
2 participants