httpmetrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package httpmetrics - Content managed by Project Forge, see [projectforge.md] for details.

Package httpmetrics - Content managed by Project Forge, see [projectforge.md] for details.

Package httpmetrics - Content managed by Project Forge, see [projectforge.md] for details.

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(mux *mux.Router) http.HandlerFunc

Jump to

Keyboard shortcuts

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