Skip to content

feat(api-core): add tracer_provider to ClientOptions for OTel support - #18139

Draft
chalmerlowe wants to merge 4 commits into
mainfrom
feat/otel-tracing-api-core-logic
Draft

feat(api-core): add tracer_provider to ClientOptions for OTel support#18139
chalmerlowe wants to merge 4 commits into
mainfrom
feat/otel-tracing-api-core-logic

Conversation

@chalmerlowe

Copy link
Copy Markdown
Contributor

WIP

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

Copy link
Copy Markdown
Contributor

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 helper functions to resolve and instantiate gRPC client interceptors, and adds a tracer_provider attribute to ClientOptions along with corresponding unit tests. The review feedback suggests simplifying the attribute access on client_options by avoiding defensive getattr calls since the attribute is guaranteed to be initialized on the class.

Comment thread packages/google-api-core/google/api_core/_otel_helpers.py Outdated
@chalmerlowe chalmerlowe self-assigned this Aug 18, 2026
Comment thread packages/google-api-core/tests/unit/test_otel_helpers.py Outdated
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.

1 participant