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)
| 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. |
| 313 | func (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. |
nothing calls this directly
no outgoing calls
no test coverage detected