tracer

package
v0.4.0-rc Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MPL-2.0 Imports: 7 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) 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
}

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