http

package
v0.0.0-...-bbd7fc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

Directories

Path Synopsis
handlers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL