forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing: introduce a StructuredEvent listener
This change extends the tracing API to support registering and unregistering an EventListener on a span. The registered EventListener will be notified about every StructuredEvent recorded by the span. EventListeners registered with a span are inherited by the span's local children. The motivation for this change was to allow higher level aggregators to watch every event without relying on periodically pulling their root span's Recording. This way the aggregator can be sure not to miss "important" events that may be rotated out of the underlying ring buffer due to memory constraints. Note, event listeners can only be registered, and inherited by spans with a RecordingStructured or RecordingVerbose recording type. Informs: cockroachdb#80395 Release note: None
- Loading branch information
1 parent
11a0a9f
commit c5c238e
Showing
6 changed files
with
196 additions
and
3 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