Skip to content

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

Merged
lcian merged 6 commits intomasterfrom
lcian/ref/send-default-pii
Apr 17, 2025
Merged

refactor: honor send_default_pii in sentry-actix and sentry-tower#771
lcian merged 6 commits intomasterfrom
lcian/ref/send-default-pii

Conversation

@lcian
Copy link
Copy Markdown
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