httpmetrics

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractHeaders

func ExtractHeaders(r *http.Request, logger util.Logger) (context.Context, util.Logger)

func InjectHTTP

func InjectHTTP(statusCode int, r *http.Request, span *telemetry.Span)

Types

type Metrics

type Metrics struct {
	Key         string
	MetricsPath string
}

func NewMetrics

func NewMetrics(key string, logger util.Logger) *Metrics

func (*Metrics) WrapHandler

func (p *Metrics) WrapHandler(router *mux.Router) http.HandlerFunc

Jump to

Keyboard shortcuts

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