Type Definition goose::metrics::GooseErrorMetrics
source · pub type GooseErrorMetrics = BTreeMap<String, GooseErrorMetricAggregate>;
Expand description
All errors detected during a load test.
By default Goose tracks all errors detected during the load test. Each error is stored
as a GooseErrorMetricAggregate
, and they
are all stored together within a BTreeMap
which is returned by
GooseAttack::execute()
when a load test
completes.
GooseErrorMetrics
can be disabled with the --no-error-summary
run-time option, or with
GooseDefault::NoErrorSummary.
Example
When viewed with std::fmt::Display
, GooseErrorMetrics
are displayed in
a table:
=== ERRORS ===
------------------------------------------------------------------------------
Count | Error
------------------------------------------------------------------------------
924 GET (Auth) front page: 503 Service Unavailable: /
715 POST (Auth) front page: 503 Service Unavailable: /user
36 GET (Anon) front page: error sending request for url (http://example.com/): connection closed before message completed