generated from honeycombio/.github
-
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.
maint: Refactor stats collection & include pcap stats (#153)
## Which problem is this PR solving? Refactors stats collection into a single func and includes pcap total packet, dropped and interface dropped counts. ## Short description of the changes - Move assembler start time to struct property instead of function variable - Add source_received, source_dropped, source_if_dropped to stats struct - Consolidate stats logic from stats ticker, packet tickers, close func and logPcapStats func into new `logAssemblerStats` func ## How to verify that this has the expected result one complete set of stats are generated and are both debug logged and sent to Honeycomb in an event --------- Co-authored-by: JamieDanielson <jamieedanielson@gmail.com> Co-authored-by: Vera Reynolds <vreynolds@users.noreply.github.com> Co-authored-by: Robb Kidd <robbkidd@honeycomb.io>
- Loading branch information
1 parent
b1b5ef0
commit c1645ad
Showing
2 changed files
with
50 additions
and
75 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