newrelic

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

README

GoDoc

newrelic

import "github.com/go-coldbrew/tracing/newrelic"

Index

Variables

var (
    // NewRelicApp is the reference for newrelic application
    NewRelicApp *newrelic.Application
)

func FinishNRTransaction

func FinishNRTransaction(ctx context.Context, err error)

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 GetOrStartNew(ctx context.Context, name string) (*newrelic.Transaction, context.Context)

func IgnoreNRTransaction

func IgnoreNRTransaction(ctx context.Context)

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

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewRelicApp is the reference for newrelic application
	NewRelicApp *newrelic.Application
)

Functions

func FinishNRTransaction

func FinishNRTransaction(ctx context.Context, err error)

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 GetOrStartNew(ctx context.Context, name string) (*newrelic.Transaction, context.Context)

func IgnoreNRTransaction

func IgnoreNRTransaction(ctx context.Context)

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.

Jump to

Keyboard shortcuts

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