blob: b97a49ed123ee7011e381cadea9b7104200297fc [file] [log] [blame]
Prince Pereirac1c21d62021-04-22 08:38:15 +00001// Go port of Coda Hale's Metrics library
2//
3// <https://github.com/rcrowley/go-metrics>
4//
5// Coda Hale's original work: <https://github.com/codahale/metrics>
6package metrics
7
8// UseNilMetrics is checked by the constructor functions for all of the
9// standard metrics. If it is true, the metric returned is a stub.
10//
11// This global kill-switch helps quantify the observer effect and makes
12// for less cluttered pprof profiles.
13var UseNilMetrics bool = false