-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(subscriber): trace events drain loop stats (#465)
The number of each variant of event encountered while draining the mpsc channel of events sent from the `ConsoleLayer` to the `Aggregator` is useful debugging information. The change adds a `DEBUG` level event which is recorded at the end of each loop draining the channel. It contains the number of each variant that has been received. I've written this same code three separate times looking into different issues, so I decided it was probably worth the small overhead of aggregating the counts, even when the tracing event isn't output anywhere. Co-authored-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information
Showing
1 changed file
with
48 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