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

Struct AuthTelemetryEvent

pkg/cmd/auth/shared/telemetry.go:13–15  ·  view source on GitHub ↗

AuthTelemetryEvent tracks the auth-state facts of a single login or refresh invocation in a pending telemetry event. [ghtelemetry.Service.Finish] owns completion; later updates are ignored. All methods are nil-tolerant so callers can hold a nil event when telemetry is disabled or the host is not eli

Source from the content-addressed store, hash-verified

11// [ghtelemetry.Service.Finish] owns completion; later updates are ignored. All methods are nil-tolerant so callers can
12// hold a nil event when telemetry is disabled or the host is not eligible.
13type AuthTelemetryEvent struct {
14 pendingEvent ghtelemetry.PendingEvent
15}
16
17// BeginAuthTelemetry starts an auth-state event at full sampling for a login or refresh invocation. It returns nil when
18// recorder is nil or when hostname is a GitHub Enterprise Server host, since enterprise usage is never reported. command

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected