# Functions
Counter tagKvs should be formatted as "key:value" example: metrics.Counter("request.qps", 1, "method:user", "type:upload").
Init As long as the Init function is called, the metrics are enabled.
Latency report time cost for execution tagKvs should be formatted as "key:value" example: metrics.Latency("request.latency", startTime, "method:user", "type:upload").
No description provided by the author
NewUniformSample constructs a new uniform sample with the given reservoir size.
SampleMax returns the maximum value of the slice of int64.
SampleMean returns the mean value of the slice of int64.
SampleMin returns the minimum value of the slice of int64.
SamplePercentile SamplePercentiles returns an arbitrary percentile of the slice of int64.
SamplePercentiles returns a slice of arbitrary percentiles of the slice of int64.
SampleStdDev returns the standard deviation of the slice of int64.
SampleSum returns the sum of the slice of int64.
SampleVariance returns the variance of the slice of int64.
Store tagKvs should be formatted as "key:value" example: metrics.Store("goroutine.count", 400, "ip:127.0.0.1").
Timer tagKvs should be formatted as "key:value" example: metrics.Timer("request.cost", 100, "method:user", "type:upload").
WithFlushInterval set the interval of reporting metrics.
No description provided by the author
WithMetricsHttpSchema in private env, 'https' may not be supported.
WithMetricsLog if not set, will not print metrics log.
No description provided by the author
WithMetricsTimeout set the interval of reporting metrics.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
SampleSnapshot is a read-only copy of another Sample.
UniformSample A uniform sample using Vitter's Algorithm R.
# Interfaces
Sample Samples maintain a statistically-significant selection of values from a stream.
# Type aliases
No description provided by the author