Trait containing helper methods required for enabling observability metrics in the library.
- internal
Trait
Properties |
protected static $metricMetadataKey = 'x-goog-api-client'
|
Methods |
protected applyServiceApiUsageMetrics( $metadata)
|
protected applyTokenEndpointMetrics( $metadata, $authRequestType)
|
protected getCredType() : string |
protected static getMetricsHeader( $credType = '', $authRequestType = '') : string
|
protected static getVersion() : string |
Properties |
private static $version = NULL
|
Properties |
protected static $metricMetadataKey = 'x-goog-api-client'
|
private static $version = NULL
|
Methods |
protected static getMetricsHeader( $credType = '', $authRequestType = '') : string
|
protected static getVersion() : string |