-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
tracing: enable fine-grained redactability for unstructured events #103884
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @knz)
-- commits
line 4 at r1:
nit: grained
pkg/util/tracing/tracer.go
line 111 at r1 (raw file):
settings.TenantWritable, "trace.redactable.enabled", "set to true to enable finer-grain redactability for unstructured events in traces",
nit: grained
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @dhartunian)
Previously, dhartunian (David Hartunian) wrote…
nit: grained
Fixed.
pkg/util/tracing/tracer.go
line 111 at r1 (raw file):
Previously, dhartunian (David Hartunian) wrote…
nit: grained
Fixed.
69dfd05
to
62a0ba0
Compare
This enables finer-grained redraction for unstructured events in traces. See cockroachdb#103883 for a discussion. (This can be reverted in case performance is found to be unacceptable.) Release note: None
62a0ba0
to
415f82d
Compare
TFYR bors r=dhartunian |
👎 Rejected by too few approved reviews |
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.
Reviewable status: complete! 1 of 0 LGTMs obtained
TFYR! bors r=dhartunian |
Build succeeded: |
103180: sql: more redactable details about traces in logs r=abargainier,michae2 a=knz Followup to #103034. Fixes #103319. Prior to this patch, the logging output for SQL statements / txns that exceeded the tracing threshold would mark the entire SQL statement syntax and the entire trace as redactable. This commit improves the situation by making the statement syntax and the trace more finely redactable, ensuring that more details are included after redaction. Note: the redaction is still pretty strong by default, as long as `trace.redactable.enabled` defaults to `false`. See #103884. Release note (sql change): The logging output emitted when `sql.trace.stmt.enable_threshold` or `sql.trace.txn.enable_threshold` are set is now emited on the SQL_EXEC channel instead of DEV as previously. Epic: CRDB-27642 Co-authored-by: Raphael 'kena' Poss <[email protected]>
Fixes #103883
Epic: CRDB-27642
This enables finer-grain redraction for unstructured events in traces. See #103883 for a discussion. (This can be reverted in case performance is found to be unacceptable.)
Release note: None