-
Notifications
You must be signed in to change notification settings - Fork 93
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
feat(spans): Scrub random strings in resource spans #2614
Conversation
relay-event-normalization/src/normalize/span/description/mod.rs
Outdated
Show resolved
Hide resolved
relay-event-normalization/src/normalize/span/description/mod.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Oleksandr <1931331+olksdr@users.noreply.github.com>
resource_script_random_path_only, | ||
"/ERs-sUsu3/wd4/LyMTWg/Ot1Om4m8cu3p7a/QkJWAQ/FSYL/GBlxb3kB", | ||
"resource.script", | ||
"/*/*/*/*/*/*/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this string valuable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but the complexity of this PR already ballooned, so I would like to keep it as-is. If it turns out we produce high cardinality because of variable length /*
, /*/*
, ..., we can always reconsider.
relay-event-normalization/src/normalize/span/description/mod.rs
Outdated
Show resolved
Hide resolved
relay-event-normalization/src/normalize/span/description/mod.rs
Outdated
Show resolved
Hide resolved
relay-event-normalization/src/normalize/span/description/mod.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
👍 |
These PR attempts to sanitize some flaws in resource span scrubbing:
chrome-extension://
domains are random strings, scrub those.cdn.domain.com
, writehttps://*.domain.com
).=
,%
, ...) with*
*
.*
.See test cases for examples.