-
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.
fix(spans): Run SQL scrubber even if already parameterized (#2286)
In #2211, we fixed the problem that noop-scrubbing led to an empty span description: > In database spans, it's common for SDKs to already send scrubbed queries, and usually Relay won't do further scrubbing, resulting in the span description not being present. But that change had the side effect that queries partially scrubbed on the client side were not scrubbed any further in relay. With this PR, we restore best-effort scrubbing on those, for two reasons: * Catch additional parameters that the SDK did not mark as such. * Better aggregation by replacing `IN (%s, %s, %s)` (variable list length) with `IN (%s)`.
- Loading branch information
Showing
4 changed files
with
12 additions
and
194 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