Documentation
¶
Index ¶
- Variables
- func FinishNRTransaction(ctx context.Context, err error)
- func GetNewRelicApp() *newrelic.Application
- func GetNewRelicTransactionFromContext(ctx context.Context) *newrelic.Transaction
- func GetOrStartNew(ctx context.Context, name string) (*newrelic.Transaction, context.Context)
- func IgnoreNRTransaction(ctx context.Context)
- func SetNewRelicApp(nr *newrelic.Application)
- func StartNRTransaction(path string, ctx context.Context, req *http.Request, w http.ResponseWriter) context.Context
- func StoreNewRelicTransactionToContext(ctx context.Context, t *newrelic.Transaction) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NewRelicApp is the reference for newrelic application NewRelicApp *newrelic.Application )
Functions ¶
func FinishNRTransaction ¶
FinishNRTransaction finishes an existing transaction
func GetNewRelicApp ¶
func GetNewRelicApp() *newrelic.Application
func GetNewRelicTransactionFromContext ¶
func GetNewRelicTransactionFromContext(ctx context.Context) *newrelic.Transaction
GetNewRelicTransactionFromContext fetches the new relic transaction that is stored in the context
func GetOrStartNew ¶
func IgnoreNRTransaction ¶
IgnoreNRTransaction ignores this NR trasaction and prevents it from being reported
func SetNewRelicApp ¶
func SetNewRelicApp(nr *newrelic.Application)
func StartNRTransaction ¶
func StartNRTransaction(path string, ctx context.Context, req *http.Request, w http.ResponseWriter) context.Context
StartNRTransaction starts a new newrelic transaction
func StoreNewRelicTransactionToContext ¶
func StoreNewRelicTransactionToContext(ctx context.Context, t *newrelic.Transaction) context.Context
StoreNewRelicTransactionToContext stores a new relic transaction object to context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.