Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stdlib): condense logs for events
The newly logged spans should be a bit easier to read, understand and reference. They are also a bit easier to parse programmatically. They also got a 10-30% speedup depending on how they are nested, making them pretty much unnoticeable in performance critical code. BREAKING CHANGES: - Changed the internal memory structure of events. `callStack` is now `span`. `parent` is removed and replaced by a `rootEvent`. Nested properties are affected as well. Usages like `event.name` still work as expected. - Changed the logs produced by the events. The `type` is now `event_span` instead of `event_callstack`. In these logs `callStack` is also replaced by span. Nested properties are affected as well to improve parsing and visualizing them. Please check the new logs and feel free to open an issue if you have trouble with migrating.
- Loading branch information
Showing
8 changed files
with
221 additions
and
241 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
Oops, something went wrong.