forked from sociomantic-tsunami/swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance client request stats logging capabilities
Fixes sociomantic-tsunami#358. Fixes sociomantic-tsunami#289.
- Loading branch information
1 parent
ee240a1
commit e1fa67b
Showing
2 changed files
with
66 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Client stats loggin enhancements | ||
|
||
`swarm.neo.client.mixins.ClientCore` | ||
|
||
The `log` method of `RequestStatsTemplate` now accepts a second argument: a | ||
settings struct that allows the user to specify the information that is logged. | ||
The following options now exist: | ||
* `LogSettings.occurred_only`: If true, only log stats for requests that have | ||
occurred at least once in the lifetime of this program; if false, log stats | ||
for all requests. | ||
* `LogSettings.timing_histogram`: If true, log the full timing histogram; if | ||
false, log just count and total time. | ||
|
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