Skip to content

Conversation

loewenheim
Copy link
Contributor

This ports the PII scrubbing logic from logs to spans V2 pretty much unchanged. I ported over most tests as well, the one exception being test_ourlog_extraction_default_pii_scrubbing_does_not_scrub_default_attributes because I couldn't make it work—there's some difference in the pipelines between logs and spans that makes this nontrivial.

I also added some tests for the scrubbing of span links (since they can have attributes of their own), everything is working as expected there.

Closes #5131. Closes RELAY-155.

@loewenheim loewenheim requested a review from a team as a code owner September 19, 2025 14:07
Copy link

linear bot commented Sep 19, 2025

@loewenheim loewenheim marked this pull request as draft September 19, 2025 14:08
cursor[bot]

This comment was marked as outdated.

@Dav1dde
Copy link
Member

Dav1dde commented Oct 6, 2025

The tests are great, but also extremely verbose to copy paste for each Attributes based item. Maybe we can consolidate all the PII tests for attribute based payloads into a single spot? That also would mean, adding/improving a test doesn't mean it needs to be copied to N places.

@loewenheim loewenheim force-pushed the sebastian/scrub-spans-v2 branch from a2b24ec to d801f07 Compare October 14, 2025 10:57
@loewenheim loewenheim marked this pull request as ready for review October 14, 2025 14:25
cursor[bot]

This comment was marked as outdated.

@loewenheim loewenheim force-pushed the sebastian/scrub-spans-v2 branch from 53acf2e to 0e73649 Compare October 15, 2025 11:54
@loewenheim loewenheim force-pushed the sebastian/scrub-spans-v2 branch from 20c9dbd to 10be263 Compare October 15, 2025 12:06
@loewenheim loewenheim added this pull request to the merge queue Oct 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 15, 2025
@loewenheim loewenheim added this pull request to the merge queue Oct 15, 2025
Merged via the queue into master with commit 734f6a0 Oct 15, 2025
28 checks passed
@loewenheim loewenheim deleted the sebastian/scrub-spans-v2 branch October 15, 2025 13:43
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.

Implement PII scrubbing for SpanV2

3 participants