-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don’t consider log events as root spans (#1208)
## Which problem is this PR solving? Log events should never be considered root spans even though they do not contain a `trace.parent_id`. A log event that is part of a trace would mark the trace complete as if it's considered a root span. This change updates the check for whether a span is considered a root span to also check for the meta field `meta.signal_type`. If the field exists and is set to "log", we return false. ## Short description of the changes - Update `InMemoryCollector.isRootSpan` to check if `meta.signal_type` and has a value of "log" - Add unit tests for InMemoryCollector to verify expected behaviour for isRootSpan
- Loading branch information
1 parent
4260ba8
commit eb76cf4
Showing
2 changed files
with
68 additions
and
0 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