-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bigquery): do not override ctx within inner span creation (#11119)
When creating child spans (mostly inside `runWithRetry` func), parent `context.Context` was being override by the child span `context.Context`, making the parent span to be missing on traces. This PR changes the `ctx` assignment inside those `runWithRetry` to always create a new `context.Context` just for that child span, similar to how it was done in other places like https://togithub.com/googleapis/google-cloud-go/blob/cc88fe1c8d834903e2b5f8d3a7cc9bbd65c70b29/bigquery/job.go#L248 Fixes #10961
- Loading branch information
1 parent
5af186e
commit 627c69a
Showing
5 changed files
with
47 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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