MCPcopy Create free account
hub / github.com/cockroachdb/errors / SafeDetailer

Interface SafeDetailer

errbase/safe_details.go:27–29  ·  view source on GitHub ↗

SafeDetailer is an interface that can be implemented by errors that can provide PII-free additional strings suitable for reporting or telemetry.

Source from the content-addressed store, hash-verified

25// can provide PII-free additional strings suitable for reporting or
26// telemetry.
27type SafeDetailer interface {
28 SafeDetails() []string
29}
30
31// GetAllSafeDetails collects the safe details from the given error object
32// and all its causes.

Callers 8

encodeWithContextFunction · 0.65
encodeBarrierFunction · 0.65
encodeGrpcStatusFunction · 0.65
getDetailsFunction · 0.65
encodeLeafFunction · 0.65
encodeWrapperFunction · 0.65
encodeLeafFunction · 0.65
encodeWithPrefixFunction · 0.65

Implementers 14

withContextcontexttags/with_context.go
barrierErrbarriers/barriers.go
withSafeDetailssafedetails/with_safedetails.go
withDomaindomains/with_domain.go
unimplementedErrorissuelink/unimplemented_error.go
withIssueLinkissuelink/with_issuelink.go
withSecondaryErrorsecondary/with_secondary.go
opaqueLeaferrbase/opaque.go
opaqueWrappererrbase/opaque.go
leafErrorerrutil/redactable.go
withPrefixerrutil/redactable.go
withNewMessageerrutil/redactable.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…