Versions in this module Expand all Collapse all v1 v1.1.0 Mar 23, 2020 v1.0.0 Mar 20, 2020 Changes in this version + func ContextWithTxn(c context.Context, txn newrelic.Transaction) context.Context + func GetTnxFromContext(c context.Context) newrelic.Transaction + func SetTxnToGorm(ctx context.Context, db *gorm.DB) *gorm.DB + func WrapHTTPClient(ctx context.Context, c *http.Client) + func WrapRedisClient(ctx context.Context, c *redis.Client) *redis.Client + type NewRelicMiddleware struct + func NewMiddleware(appname string, license string) (*NewRelicMiddleware, error) + func NewMiddlewareWithApp(app newrelic.Application) *NewRelicMiddleware + func NewMiddlewareWithConfig(c newrelic.Config) (*NewRelicMiddleware, error) + func (nr *NewRelicMiddleware) Handler(h http.Handler) http.Handler + func (nr *NewRelicMiddleware) SetTxnNameFunc(fn TxnNameFunc) + type TxnNameFunc func(*http.Request) string