monitoring

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware func(next http.Handler) http.Handler

Middleware is a function returns another http.Handler that wraps the given handler.

type Monitoring

type Monitoring struct {
	// contains filtered or unexported fields
}

Monitoring is the type holding a middleware that traces the request to an application.

func New

func New(raw json.RawMessage) (*Monitoring, error)

New initializes the monitoring with the given configuration. Right now it only supports newrelic as the monitoring backend.

func (*Monitoring) Middleware

func (m *Monitoring) Middleware(next http.Handler) http.Handler

Middleware is an HTTP middleware that traces the request with the configured monitoring backednd.

Jump to

Keyboard shortcuts

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