MCPcopy Create free account
hub / github.com/cockroachdb/redact / processLogBody

Method processLogBody

otelprocessor/processor.go:42–47  ·  view source on GitHub ↗
(body pcommon.Value)

Source from the content-addressed store, hash-verified

40}
41
42func (rp *redactProcessor) processLogBody(body pcommon.Value) {
43 if body.Type() == pcommon.ValueTypeStr {
44 red := redact.RedactableString(body.AsString())
45 body.SetStr(string(red.Redact()))
46 }
47}

Callers 1

processResourceLogMethod · 0.95

Calls 2

RedactableStringMethod · 0.80
RedactMethod · 0.45

Tested by

no test coverage detected