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 ¶
ConnectionConfig - config to connect to newrelic
Click to show internal directories.
Click to hide internal directories.