newrelic

package
v0.0.0-...-c80c473 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTransaction

func FetchTransaction(ctx context.Context) *newrelic.Transaction

FetchTransaction - returns the newrelic transaction from the context.

Types

type Connection

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

Connection - newrelic connection params

func NewConnection

func NewConnection(ctx context.Context, params ConnectionConfig) (*Connection, error)

NewConnection - connection parameters

func (*Connection) InstrumentNewRelic

func (nApp *Connection) InstrumentNewRelic(next http.HandlerFunc) http.HandlerFunc

InstrumentNewRelic is the middleware for newrelic

type ConnectionConfig

type ConnectionConfig struct {
	newrelic.Config
}

ConnectionConfig - config to connect to newrelic

Jump to

Keyboard shortcuts

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