Skip to content

feat(auth): add OpenTelemetry gRPC and HTTP wrappers for T4 tracing#14133

Merged
quartzmo merged 19 commits intogoogleapis:mainfrom
quartzmo:auth-grpc-tracing-t4
Mar 12, 2026
Merged

feat(auth): add OpenTelemetry gRPC and HTTP wrappers for T4 tracing#14133
quartzmo merged 19 commits intogoogleapis:mainfrom
quartzmo:auth-grpc-tracing-t4

Conversation

@quartzmo
Copy link
Member

@quartzmo quartzmo commented Mar 5, 2026

Enable grpctransport and httptransport to inject static attributes, capture dynamic attributes from context, and enforce error semantics.

refs: googleapis/gax-go#472
refs: googleapis/gapic-generator-go#1706

Enable grpctransport and httptransport to inject static attributes,
capture dynamic attributes from context, and enforce error semantics.

refs: googleapis/gax-go#472
refs: googleapis/gapic-generator-go#1706
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces OpenTelemetry wrappers for gRPC and HTTP transports to enhance tracing with Google Cloud-specific attributes. The changes include feature-gating the new functionality, adding static attributes from options, and dynamically adding attributes from the request context. The implementation correctly handles error semantics for spans. The accompanying tests are thorough, covering both enabled and disabled states of the new tracing feature. My review includes suggestions to improve performance by batching attribute updates and to make the tests more robust by avoiding reliance on test names for test setup.

Copy link
Contributor

@westarle westarle left a comment

Choose a reason for hiding this comment

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

A lot of nits about field names and sources, structurally I think this is good (and protected by the feature flag.)

@quartzmo quartzmo marked this pull request as ready for review March 9, 2026 19:38
@quartzmo quartzmo requested review from a team as code owners March 9, 2026 19:38
@quartzmo quartzmo added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 9, 2026
@quartzmo
Copy link
Member Author

quartzmo commented Mar 9, 2026

Adding do not merge pending release of updated callctx package dependency in gax-go.

@quartzmo quartzmo removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 11, 2026
@quartzmo
Copy link
Member Author

Removed do not merge after upgrading gax-go/v2 to 2.18.0.

@quartzmo quartzmo merged commit d38abf9 into googleapis:main Mar 12, 2026
12 checks passed
@quartzmo quartzmo deleted the auth-grpc-tracing-t4 branch March 12, 2026 21:21
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.

4 participants