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

Function WithTelemetry

telemetrykeys_api.go:27–27  ·  view source on GitHub ↗

WithTelemetry annotates err with the given telemetry key(s). The telemetry keys must be PII-free. Detail is shown: - via `errors.GetSafeDetails()`. - via `GetTelemetryKeys()` below. - when formatting with `%+v`. - in Sentry reports.

(err error, keys ...string)

Source from the content-addressed store, hash-verified

25// - when formatting with `%+v`.
26// - in Sentry reports.
27func WithTelemetry(err error, keys ...string) error { return telemetrykeys.WithTelemetry(err, keys...) }
28
29// GetTelemetryKeys retrieves the (de-duplicated) set of
30// all telemetry keys present in the direct causal chain

Callers

nothing calls this directly

Calls 1

WithTelemetryFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…