tracer

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewRelicClient

type NewRelicClient struct {
	Application *newrelic.Application
}

func NewNRClient

func NewNRClient(cfg config.NewRelicConfiguration, logger *logrus.Logger) (*NewRelicClient, error)

func (*NewRelicClient) NewContext added in v0.5.3

func (nr *NewRelicClient) NewContext(ctx context.Context, txn *newrelic.Transaction) context.Context

func (*NewRelicClient) RequestWithTransactionContext

func (nr *NewRelicClient) RequestWithTransactionContext(r *http.Request, txn *newrelic.Transaction) *http.Request

func (*NewRelicClient) SetWebRequestHTTP

func (nr *NewRelicClient) SetWebRequestHTTP(r *http.Request, txn *newrelic.Transaction)

func (*NewRelicClient) SetWebResponse

func (*NewRelicClient) StartTransaction

func (nr *NewRelicClient) StartTransaction(name string) *newrelic.Transaction

type Tracer

type Tracer interface {
	StartTransaction(name string) *newrelic.Transaction
	SetWebRequestHTTP(r *http.Request, txn *newrelic.Transaction)
	SetWebResponse(w http.ResponseWriter, txn *newrelic.Transaction) http.ResponseWriter
	RequestWithTransactionContext(r *http.Request, txn *newrelic.Transaction) *http.Request
	NewContext(ctx context.Context, txn *newrelic.Transaction) context.Context
}

func NewTracer

func NewTracer(cfg config.Configuration, logger *logrus.Logger) (Tracer, error)

Jump to

Keyboard shortcuts

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