Creates a recorder with a provider label and callback set.
Identifies the credential provider on every emitted event.
ReadonlyproviderIdentifies the credential provider on every emitted event.
Records a token-cache hit.
Records a token-cache invalidation.
Replaces the shared callback set for this recorder group.
Records a token acquisition.
Records a token lifetime when the token has an expiration time.
Tokens without an expiration time do not produce an event.
Records a token refresh.
Returns a recorder that shares callbacks and uses another provider label.
Sends normalized authorization events to a shared callback set.
This is a low-level helper for credential implementations. Application code normally passes callbacks through SDKOptions.metrics or SDKOptions.authMetrics.
Recorder instances created with withProvider share the same mutable callback set. Calling setMetrics on one of them updates all recorder instances in that group.