Skip to content

Commit defdded

Browse files
authored
feat(v2): add TelemetryErrorInfo and ExtractTelemetryErrorInfo (#487)
Add TelemetryErrorInfo` and ExtractTelemetryErrorInfo to parse error details for metrics and actionable logs: * Evaluate both gRPC statuses and parseable REST HTTP errors (yielding fine-grained Reasons or numeric HTTP fallbacks). * Explicitly document fallbacks for %T unknown error types to align with OpenTelemetry registries. * Add a Message method to apierror.APIError to retrieve raw unformatted error messages. * Add recordMetric to measure API call durations using OpenTelemetry, capturing both static client configurations and dynamic run-time tags like rpc.method and url.template. It automatically decouples context cancellations to ensure fail-state latencies are recorded.
1 parent 399c197 commit defdded

File tree

4 files changed

+501
-14
lines changed

4 files changed

+501
-14
lines changed

0 commit comments

Comments
 (0)