Skip to content

feat(v2): hook metric recording into gax.Invoke#494

Merged
westarle merged 1 commit intogoogleapis:mainfrom
westarle:westarle/metrics-invoke-hook-v4
Mar 25, 2026
Merged

feat(v2): hook metric recording into gax.Invoke#494
westarle merged 1 commit intogoogleapis:mainfrom
westarle:westarle/metrics-invoke-hook-v4

Conversation

@westarle
Copy link
Copy Markdown
Contributor

This connects #487 with Invoke when the METRICS feature is enabled.

@westarle westarle force-pushed the westarle/metrics-invoke-hook-v4 branch from 7401789 to fae1234 Compare March 25, 2026 15:48
@westarle westarle marked this pull request as ready for review March 25, 2026 15:54
@westarle westarle requested a review from a team as a code owner March 25, 2026 15:54
Comment thread v2/invoke_otel_test.go Outdated
"url.domain": "test.domain",
"rpc.system.name": "grpc",
"error.type": "CLIENT_TIMEOUT",
"rpc.response.status_code": "UNKNOWN",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why doesn't result in DEADLINE_EXCEEDED? Afaik, a Go Context timeout maps to codes.DeadlineExceeded. https://github.com/grpc/grpc-go/blob/v1.79.3/status/status.go#L156

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, that was a helpful link!

Comment thread v2/invoke_otel_test.go
@westarle westarle force-pushed the westarle/metrics-invoke-hook-v4 branch from fae1234 to e27d518 Compare March 25, 2026 18:15
@westarle westarle force-pushed the westarle/metrics-invoke-hook-v4 branch from e27d518 to d146431 Compare March 25, 2026 18:38
@westarle westarle merged commit 1f3e9ae into googleapis:main Mar 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants