tracing: safe formatting Structured trace event redacted in verbose trace #103052
Labels
A-observability-inf
A-tracing
Relating to tracing in CockroachDB.
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
spanInner.RecordStructured
has logic to record structured trace events as unstructured events in verbose traces:cockroach/pkg/util/tracing/span_inner.go
Lines 268 to 272 in 29523d3
However, because this logic passes through a raw
string
, it loses information about redaction and becomes entirely redacted if trace redaction is enabled. This is true even if the original structured event implements theredact.SafeFormatter
interface.Jira issue: CRDB-27814
Epic: CRDB-27642
The text was updated successfully, but these errors were encountered: