Skip to content

feat: pass through fallback parameter for HTTP calls - #9277

Open
shivanee-p wants to merge 3 commits into
shivaneep-o11y-grpc-tracingfrom
shivaneep-o11y-http-tracing
Open

feat: pass through fallback parameter for HTTP calls#9277
shivanee-p wants to merge 3 commits into
shivaneep-o11y-grpc-tracingfrom
shivaneep-o11y-http-tracing

Conversation

@shivanee-p

@shivanee-p shivanee-p commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Pass through true as the fallback parameter to createApiCall() to account for HTTP calls and update unit tests accordingly

@shivanee-p
shivanee-p added this pull request to stack #9275 September 9, 2026 21:14

@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 updates the fallback API call creation in fallback.ts to pass a fallback flag to _createApiCall, and adds corresponding unit tests to verify this behavior. The review feedback correctly identifies that hardcoding true as the fallback argument ignores the actual fallback parameter (which can be true, false, or 'rest'), and suggests using fallback ?? true instead to preserve the parameter's value.

Comment thread core/packages/gax/src/fallback.ts
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch from 547c4de to 1c3c038 Compare September 9, 2026 21:18
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch from 1c3c038 to eddcb84 Compare September 9, 2026 21:24
@shivanee-p

Copy link
Copy Markdown
Contributor Author

Note: linter failures in apiCallable.ts ae resolved in #9278

@shivanee-p
shivanee-p marked this pull request as ready for review September 9, 2026 21:53
@shivanee-p
shivanee-p requested a review from a team as a code owner September 9, 2026 21:53
@github-actions
github-actions Bot requested a review from bshaffer September 9, 2026 21:53
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch 2 times, most recently from 23228f6 to e2b5e2e Compare September 10, 2026 18:37
@shivanee-p
shivanee-p removed this pull request from stack #9275 September 10, 2026 18:41
@shivanee-p
shivanee-p added this pull request to stack #9282 September 10, 2026 18:42
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch from e2b5e2e to 6b5bd97 Compare September 11, 2026 18:08
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