Skip to content

Per-RPC Error Logging #4946

@westarle

Description

@westarle

Logs should be emitted for errors on HTTP or gRPC requests, attached to each T4 span. In addition to common transport level attributes like response code and local error messages, these logs have the following attributes:

  • error.type e.g. RATE_LIMIT_EXCEEDED
  • gcp.error.domain e.g. "pubsub.googleapis.com"
  • gcp.error.metadata.<key> e.g. gcp.error.metadata.zone: "us-east1-a"`

These values should be parsed from the ErrorInfo attached to the response as error, if any.

I suggest they are logged at "INFO" since we will be recording them on retryable requests.

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions