httpstats

package
v1.20240719.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package httpstats provides shims for writing webutil logger events to a stats collector.

Index

Constants

View Source
const (
	MetricNameHTTPRequest            string = string(webutil.FlagHTTPRequest)
	MetricNameHTTPRequestSize        string = MetricNameHTTPRequest + ".size"
	MetricNameHTTPRequestElapsed     string = MetricNameHTTPRequest + ".elapsed"
	MetricNameHTTPRequestElapsedLast string = MetricNameHTTPRequestElapsed + ".last"

	TagRoute  string = "route"
	TagProto  string = "proto"
	TagMethod string = "method"
	TagStatus string = "status"

	RouteNotFound string = "not_found"
)

HTTP stats constants

Variables

This section is empty.

Functions

func AddListeners

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

AddListeners adds web listeners.

Types

This section is empty.

Jump to

Keyboard shortcuts

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