httpmetrics

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

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

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

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(rc *fasthttp.RequestCtx, logger util.Logger) (context.Context, util.Logger)

func InjectHTTP

func InjectHTTP(rc *fasthttp.RequestCtx, 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(r *router.Router, includeMetrics bool) fasthttp.RequestHandler

Jump to

Keyboard shortcuts

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