Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Requests are for counting the number of requests to an http handler Requests = stats.Int64("http/requests", "The number of calls to the handler", stats.UnitDimensionless) // ErrorCount will count error invocations in any http handler ErrorCount = stats.Int64("http/errors", "The number of errors encountered", stats.UnitDimensionless) // Duration will track the duration of every http handler Duration = stats.Float64("http/duration", "The latency in milliseconds per HTTP handler", stats.UnitMilliseconds) )
View Source
var ( // MethodKey is a tag for the HTTP method (ie: PUT/POST) MethodKey = tag.MustNewKey("method") // EndpointKey is for tracking an endpoint name/path EndpointKey = tag.MustNewKey("endpoint") )
Functions ¶
func RegisterViews ¶
func RegisterViews() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.