Skip to content

Conversation

Litarnus
Copy link
Contributor

This PR enables pii scrubbing on all sentry_tags values within spans. This is done by introducing a struct level pii metastructure attribute which is then used as the default for all fields without explicit pii attributes.

@Litarnus Litarnus self-assigned this Apr 30, 2025
@Litarnus Litarnus marked this pull request as ready for review April 30, 2025 12:25
@Litarnus Litarnus requested a review from a team as a code owner April 30, 2025 12:25
Comment on lines +36 to +37
assert event["spans"][0]["sentry_tags"]["user.geo.country_code"] == "**"
assert event["spans"][0]["sentry_tags"]["user.geo.subregion"] == "**"
Copy link
Member

Choose a reason for hiding this comment

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

While it makes sense, that means now Sentry will index ** as geo code 🙈

@Litarnus Litarnus merged commit e52d68a into master May 5, 2025
28 checks passed
@Litarnus Litarnus deleted the martinl/sentry-tag-scrub branch May 5, 2025 11:04
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.

3 participants