Repository navigation
feat(gax): accept clientOptions in createApiCall for telemetry tracing - #9176
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces telemetry tracing options to ClientOptions and integrates them into createApiCall to determine if tracing is enabled. Key feedback includes explicitly checking if the GOOGLE_SDK_NODE_EXPERIMENTAL_O11Y_ENABLED environment variable equals 'true' to avoid false positives with other string values. Additionally, the console.log statements used for debugging tracing status should be removed to prevent polluting the standard output of consuming applications, and the corresponding unit tests that spy on these logs should be cleaned up.
f45d91d to
ae7b3a3
Compare
westarle
left a comment
There was a problem hiding this comment.
I think we should consider CallSettings carefully. I would take the change to
cef268a to
39ae92a
Compare
8baf444 to
32dc2d6
Compare
danieljbruce
left a comment
There was a problem hiding this comment.
Do you have any more information about the CallSettings comment from Wes? Seems like it is okay to expose the options here, I just don't have enough context.
westarle
left a comment
There was a problem hiding this comment.
everything else lgtm if you can get a review from the team.
32dc2d6 to
93be23f
Compare
|
/gemini |
danieljbruce
left a comment
There was a problem hiding this comment.
I don't know enough to know why merge and the gax constructor will need these new options yet, but supporting the new options only in CallSettings would be better if it is possible and if the user does not need them. Maybe we want to expose these options to the user though so I'll add a LGTM, but let's make sure there is no other choice.
aab773c to
e8d848e
Compare
e8d848e to
cdd934f
Compare
56b130f to
bac5250
Compare
🤖 I have created a release *beep* *boop* --- <details><summary>common: 8.0.2</summary> ## [8.0.2](common-v8.0.1...common-v8.0.2) (2026-08-26) ### Bug Fixes * Patch the vulnerability for Bigquery and other REST based clients ([#9188](#9188)) ([94aac1e](94aac1e)) </details> <details><summary>google-gax: 6.1.0</summary> ## [6.1.0](google-gax-v6.0.3...google-gax-v6.1.0) (2026-08-26) ### Features * Add Otel Tracing helpers and tests ([#9070](#9070)) ([5111d52](5111d52)) * **gax:** Accept clientOptions in createApiCall for telemetry tracing ([#9176](#9176)) ([257a895](257a895)) ### Bug Fixes * **gax:** Fix several missing files from the monorepo merge ([#9209](#9209)) ([6fcd94d](6fcd94d)) * Turn on the gax vulnerability tests again ([#9204](#9204)) ([09609c8](09609c8)) </details> <details><summary>bigquery: 9.0.3</summary> ## [9.0.3](bigquery-v9.0.2...bigquery-v9.0.3) (2026-08-26) ### Bug Fixes * Patch the vulnerability for Bigquery and other REST based clients ([#9188](#9188)) ([94aac1e](94aac1e)) </details> <details><summary>health: 0.6.1</summary> ## [0.6.1](health-v0.6.0...health-v0.6.1) (2026-08-26) ### Bug Fixes * Upgrade sinon types for health package ([#9202](#9202)) ([b312515](b312515)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Adds clientOptions support and telemetry gating logic to createApiCall in google-gax to support OpenTelemetry tracing.