Documentation ¶
Index ¶
- type NewRelicClient
- func (nr *NewRelicClient) NewContext(ctx context.Context, txn *newrelic.Transaction) context.Context
- func (nr *NewRelicClient) RequestWithTransactionContext(r *http.Request, txn *newrelic.Transaction) *http.Request
- func (nr *NewRelicClient) SetWebRequestHTTP(r *http.Request, txn *newrelic.Transaction)
- func (nr *NewRelicClient) SetWebResponse(w http.ResponseWriter, txn *newrelic.Transaction) http.ResponseWriter
- func (nr *NewRelicClient) StartTransaction(name string) *newrelic.Transaction
- type Tracer
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 (nr *NewRelicClient) SetWebResponse(w http.ResponseWriter, txn *newrelic.Transaction) http.ResponseWriter
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 }
Click to show internal directories.
Click to hide internal directories.