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

chore(bigquery/storage/managedwriter): add client instrumentation #6480

Merged
merged 6 commits into from
Aug 9, 2022

Conversation

shollyman
Copy link
Contributor

adds instrumentation for this client to aid in debugging scenarios with
the write backend

adds instrumentation for this client to aid in debugging scenarios with
the write backend
@shollyman shollyman requested a review from a team August 5, 2022 17:06
@shollyman shollyman requested a review from a team as a code owner August 5, 2022 17:06
@shollyman shollyman requested a review from loferris August 5, 2022 17:06
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the BigQuery API. labels Aug 5, 2022
@shollyman shollyman changed the title chore(bigquery/storage/managedwriter): add missing instrumentation chore(bigquery/storage/managedwriter): add client instrumentation Aug 5, 2022
@shollyman shollyman requested review from yirutang and removed request for loferris August 5, 2022 17:08
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Aug 5, 2022
@@ -70,7 +70,7 @@ func WithMaxInflightBytes(n int) WriterOption {
// This is generally for diagnostic purposes only.
func WithTraceID(traceID string) WriterOption {
return func(ms *ManagedStream) {
ms.streamSettings.TraceID = traceID
ms.streamSettings.TraceID = buildTraceID(traceID)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to allow users to add in their own trace id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This changes from just setting the traceID in total to building a prefix for the library, and the user-specific trace ID. Same as jsonwriter etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

take a look at options_test.go for the expected output

@shollyman shollyman enabled auto-merge (squash) August 9, 2022 16:01
@shollyman shollyman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2022
@shollyman shollyman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2022
@shollyman shollyman added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 9, 2022
@shollyman shollyman merged commit 8d0d3ff into googleapis:main Aug 9, 2022
@shollyman shollyman deleted the instrumentation branch August 9, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants