You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduces a new sentry attribute sentry.normalized_db_query. In the V1 span Relay pipeline, we read the raw db query from the span description field, scrub it, and write it back to the description field (which becomes sentry.normalized_description).
Now that we're migrating to V2 spans, we plan on reading the query from the conventional field db.query.text, normalizing it, and writing it to another field (instead of overwriting the raw original field). However, there is currently no appropriate field to use for the normalized query.
We might want to mark this as deprecated then and add a back-fill property to let Relay write it into the correct field.
sentry.normalized_description currently holds several different types of values, depending on the type of span (op). So, this isn't a 1:1 replacement. We'll similarly move the other types of values into their own semantic attributes.
Yup! Relay would just add this field so it can be used in the product.
db.query.text shouldn't actually be pre-sanitized, it should contain the raw query. We just normalize the raw query for the sake of grouping in the product side (e.g. backend insights). V1 spans contained the raw query in the span description field, and relay normalizes/scrubs it. Now, we'd like to undergo the same normalization for V2 spans, except the raw query is in db.query.text but we don't want to write it back to the same field, and instead to this new field (so we can preserve the raw query).
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces a new sentry attribute
sentry.normalized_db_query. In the V1 span Relay pipeline, we read the raw db query from the span description field, scrub it, and write it back to the description field (which becomessentry.normalized_description).Now that we're migrating to V2 spans, we plan on reading the query from the conventional field
db.query.text, normalizing it, and writing it to another field (instead of overwriting the raw original field). However, there is currently no appropriate field to use for the normalized query.