-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tracing): Protect from concurrent reads/writes to Span Tags, Cont…
…exts, Data (#609) Span.SetTag(), Span.SetData(), Span.SetContext(), and Span.toEvent() read and write to underlying Span.Tags, Span.Data, and Span.contexts maps, which might read to panics if the operations are not synchronized. This PR adds a mutex that makes sure that those methods are not executed in parallel.
- Loading branch information
Showing
2 changed files
with
23 additions
and
7 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