-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spans): Scrub random strings in resource spans (#2614)
These PR attempts to sanitize some flaws in resource span scrubbing: 1. `chrome-extension://` domains are random strings, scrub those. 2. Keep the schema, but scrub subdomains (instead of `cdn.domain.com`, write `https://*.domain.com`). 3. Replace path segments with special characters (`=`, `%`, ...) with `*` 4. If a path segment has more than 25 characters after regex scrubbing, assume it is an identifier and replace with `*`. 5. If a path segment has only alphabetic characters and contains uppercase characters, assume it is an identifier and replace with `*`. See test cases for examples.
- Loading branch information
Showing
3 changed files
with
232 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.