-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
adds instrumentation for this client to aid in debugging scenarios with the write backend
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
adds instrumentation for this client to aid in debugging scenarios with
the write backend