MCPcopy Create free account
hub / github.com/cli/cli / SetTelemetryRecorder

Method SetTelemetryRecorder

internal/config/config.go:313–315  ·  view source on GitHub ↗

SetTelemetryRecorder supplies the recorder used to report token refresh attempts. Because Authentication returns a single shared AuthConfig, a recorder set once remains available to every later caller.

(recorder ghtelemetry.InvocationRecorder)

Source from the content-addressed store, hash-verified

311// SetTelemetryRecorder supplies the recorder used to report token refresh attempts. Because Authentication returns a
312// single shared AuthConfig, a recorder set once remains available to every later caller.
313func (c *AuthConfig) SetTelemetryRecorder(recorder ghtelemetry.InvocationRecorder) {
314 c.telemetry = recorder
315}
316
317// SetTelemetryCommand sets the command reported with token refresh attempts, such as "gh auth token". Callers must
318// not pass user-defined names, like those of extensions or aliases.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected