module documentation

Metric and log helpers. Metric and label names must be the same across SDKs.

Class FailureReason failure_reason label values.
Class Fallback fallback label values.
Class FetchPath fetch_path label values.
Class LookupResult result label values.
Class Outcome outcome label values.
Class SecretType secret_type label values. Client cert and key secrets are fetched together and reported as TLS_CLIENT_CERT in metrics.
Class Telemetry Metric instruments for a client's metric meter.
Exception InvalidResponseError A response that was received but has no usable secret value.
Exception LambdaExtensionStatusError A non-200 response from the Lambda extension.
Function classify_failure Return the failure_reason metric label for a fetch error.
Constant LABEL_FAILURE_REASON Undocumented
Constant LABEL_FALLBACK Undocumented
Constant LABEL_FETCH_PATH Undocumented
Constant LABEL_OUTCOME Undocumented
Constant LABEL_RESULT Undocumented
Constant LABEL_SECRET_TYPE Undocumented
Constant METRIC_CACHE_LOOKUP Undocumented
Constant METRIC_FETCH_FAILED Undocumented
Constant METRIC_FETCH_LATENCY Undocumented
Constant _AWS_ERROR_CODE_FAILURE_REASONS Undocumented
Constant _BOTOCORE_TIMEOUT_ERRORS Undocumented
def classify_failure(err: BaseException) -> FailureReason: (source)

Return the failure_reason metric label for a fetch error.

LABEL_FAILURE_REASON: str = (source)

Undocumented

Value
'failure_reason'
LABEL_FALLBACK: str = (source)

Undocumented

Value
'fallback'
LABEL_FETCH_PATH: str = (source)

Undocumented

Value
'fetch_path'
LABEL_OUTCOME: str = (source)

Undocumented

Value
'outcome'
LABEL_RESULT: str = (source)

Undocumented

Value
'result'
LABEL_SECRET_TYPE: str = (source)

Undocumented

Value
'secret_type'
METRIC_CACHE_LOOKUP: str = (source)

Undocumented

Value
'temporal_aws_secrets_manager_cache_lookup'
METRIC_FETCH_FAILED: str = (source)

Undocumented

Value
'temporal_aws_secrets_manager_fetch_failed'
METRIC_FETCH_LATENCY: str = (source)

Undocumented

Value
'temporal_aws_secrets_manager_fetch_latency'
_AWS_ERROR_CODE_FAILURE_REASONS = (source)

Undocumented

Value
{'ResourceNotFoundException': FailureReason.RESOURCE_NOT_FOUND,
 'AccessDeniedException': FailureReason.ACCESS_DENIED,
 'DecryptionFailure': FailureReason.DECRYPTION_FAILURE,
 'InvalidRequestException': FailureReason.INVALID_REQUEST,
 'InvalidParameterException': FailureReason.INVALID_REQUEST,
 'ThrottlingException': FailureReason.THROTTLING,
 'InternalServiceError': FailureReason.INTERNAL_SERVICE_ERROR}
_BOTOCORE_TIMEOUT_ERRORS: set[str] = (source)

Undocumented

Value
set(['ConnectTimeoutError', 'ReadTimeoutError'])