r2stats

package
v1.20210731.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricNameHTTPClientRequest            string = string(r2.Flag)
	MetricNameHTTPClientRequestElapsed     string = MetricNameHTTPClientRequest + ".elapsed"
	MetricNameHTTPClientRequestElapsedLast string = MetricNameHTTPClientRequestElapsed + ".last"

	TagHostname string = "url_hostname"
	TagTarget   string = "target"
	TagMethod   string = "method"
	TagStatus   string = "status"
)

HTTP stats constants

Variables

This section is empty.

Functions

func AddListeners

func AddListeners(log logger.FilterListenable, collector stats.Collector, opts ...AddListenerOption)

AddListeners adds web listeners.

Types

type AddListenerOption

type AddListenerOption func(*AddListenerOptions)

AddListenerOption mutates AddListenerOptions

type AddListenerOptions

type AddListenerOptions struct {
	RequestSanitizeDefaults []sanitize.RequestOption
}

AddListenerOptions are options for adding listeners.

Jump to

Keyboard shortcuts

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