apm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoticeError

func NoticeError(ctx context.Context, err error)

func SetApplication

func SetApplication(app *newrelic.Application)

Types

type APM

type APM struct {
	// contains filtered or unexported fields
}

func New

func New() *APM

func (*APM) NoticeError

func (a *APM) NoticeError(ctx context.Context, err error)

func (*APM) SetApplication

func (a *APM) SetApplication(app *newrelic.Application)

func (*APM) StartTransaction

func (a *APM) StartTransaction(ctx context.Context, name string) (*Transaction, context.Context)

func (*APM) StartWebTransaction

func (a *APM) StartWebTransaction(name string, r *http.Request, w http.ResponseWriter) (*Transaction, *http.Request, http.ResponseWriter)

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

func NewTransaction

func NewTransaction(inner *newrelic.Transaction) *Transaction

func StartTransaction

func StartTransaction(ctx context.Context, name string) (*Transaction, context.Context)

func (*Transaction) End

func (t *Transaction) End()

Jump to

Keyboard shortcuts

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