chore(x-goog-spanner-request-id): set span attribute x_goog_spanner_request_id #3905
Open
odeke-em wants to merge 5 commits intogoogleapis:mainfrom
Open
chore(x-goog-spanner-request-id): set span attribute x_goog_spanner_request_id #3905odeke-em wants to merge 5 commits intogoogleapis:mainfrom
odeke-em wants to merge 5 commits intogoogleapis:mainfrom
Conversation
76de4a6 to
9effc60
Compare
3ec60f7 to
93b9ef8
Compare
surbhigarg92
previously approved these changes
Jun 6, 2025
93b9ef8 to
cb62c7d
Compare
02525ea to
b237b96
Compare
Contributor
Author
|
@sakthivelmanii @surbhigarg92 @olavloite @rahul2393 kindly help me run the bots please. Also this PR can't run locally due to the mismatch in Java versions hence the only option is having it run on these bots. |
b237b96 to
593fae9
Compare
…equest_id This sets the span attribute x_goog_spanner_request_id so as to enable correlation with distributed tracing with OpenTelemetry. Updates googleapis#3537
593fae9 to
625c7dd
Compare
Contributor
Author
|
@sakthivelmanii @rahul2393 kindly help run the bots. |
Contributor
Author
| } | ||
| if (span != null) { | ||
| span.setAttribute("gfe_latency", String.valueOf(gfeLatency)); | ||
| String reqId = XGoogSpannerRequestId.getRequestIdFromMetadata(metadata); |
Contributor
Contributor
Author
There was a problem hiding this comment.
We encountered an oddity that the Java Spanner client tests for OpenTelemetry only work for certain versions of Java as @olavloite mentioned in our group, so even testing anything requires y'all to help me run the bots /cc @tharoldD to help out with the updates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This sets the span attribute x_goog_spanner_request_id so as to enable correlation with distributed tracing with OpenTelemetry.
Updates #3537