Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
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.
Click to show internal directories.
Click to hide internal directories.