forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: remove WithSeparateRecording
`WithSeparateRecording` set up a Span to *not* share its recording with its parent. This was necessary before cockroachdb#50914 as parents would also show up in children's recording, and SQL SpanStats want to set up spans only for the purpose of populating them with the stats (and want to avoid pulling a possibly giant recording of the parent out with it). PR cockroachdb#50914 introduced the unidirectional transitivity we have today: a parent's recording will recurse into the child, but not vice versa. This means that the existing uses of `WithSeparateRecording` were no longer useful; all they were doing was to hide information from the parent. In fact, they are counterproductive, as they prevent the full recording to become available at the root span, which is not an issue today since the only thing missing are SpanStats, but with always-on tracing we'd possibly silently drop metadata. Release note: None
- Loading branch information
Showing
6 changed files
with
9 additions
and
34 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
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