monitoring

package
v0.0.0-...-1a11905 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

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