Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow trace id to switch within the same connection #2852

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

GaoleMeng
Copy link
Contributor

This change will allow the trace id to be changeable within the same connection. So that the same connection pool could be used for multiple different trace id from different stream writer. We will pass a new trace id to server side once we detect a table switch

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@GaoleMeng GaoleMeng requested a review from a team as a code owner February 6, 2025 01:58
@GaoleMeng GaoleMeng requested a review from whuffman36 February 6, 2025 01:58
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels Feb 6, 2025
@GaoleMeng GaoleMeng force-pushed the feature_branch branch 2 times, most recently from d0eeecf to 305a57b Compare February 6, 2025 02:16
Copy link
Contributor

@agrawal-siddharth agrawal-siddharth left a comment

Choose a reason for hiding this comment

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

Although this is OK for now, eventually we will also want to update the traceId on the telemetryMetrics when we have a table switch. Since currently we only use traceId for Dataflow in the telemetryMetrics, and Dataflow does not attempt to change the traceId across streams, we don't need this now.

@GaoleMeng GaoleMeng merged commit 850eaea into googleapis:main Feb 11, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants