-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(spans): Write sentry tags to dedicated field (#2555)
Up until now, we've materialized span tags into `span.data`. This creates several problems: * Potential clashes between keys set by the user and keys set by sentry. * Pollution of the UI because `span.data` entries show up in the event details view. * Most importantly: `span.data` is [subject to PII scrubbing](#1953), so tags computed by Relay are sometimes overwritten by PII scrubbing in the next Relay instance. Instead of writing into `span.data`, create a new top-level object in the span called `sentry_tags`. The same naming has been used [here](https://github.com/getsentry/sentry-kafka-schemas/blob/79fb0900e3a9a4da6f0db15eab1b5d27f42ffeb7/schemas/snuba-spans.v1.schema.json#L81-L83). For now, double-write span tags into both `span.data` and `span.sentry_tags` until all users of these tags have switched to `sentry_tags`.
- Loading branch information
Showing
9 changed files
with
157 additions
and
78 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
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
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.