Documentation ¶
Index ¶
- type Config
- type NewRelic
- func (nr *NewRelic) AddAttribute(key string, value interface{})
- func (nr *NewRelic) EndTransaction()
- func (nr *NewRelic) Init() error
- func (nr *NewRelic) InstrumentRoutes(r *mux.Router) *mux.Router
- func (nr *NewRelic) NoticeError(err error)
- func (nr *NewRelic) Shutdown()
- func (nr *NewRelic) StartTransaction(name string) *newrelic.Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewRelic ¶
type NewRelic struct {
// contains filtered or unexported fields
}
NewRelic -
func (*NewRelic) AddAttribute ¶
AddAttribute to the started transaction
func (*NewRelic) EndTransaction ¶
func (nr *NewRelic) EndTransaction()
EndTransaction ends a started Transaction
func (*NewRelic) InstrumentRoutes ¶
InstrumentRoutes instruments requests through the provided mux.Router.
func (*NewRelic) NoticeError ¶
NoticeError records an error on the transaction
func (*NewRelic) Shutdown ¶
func (nr *NewRelic) Shutdown()
Shutdown flushes data to New Relic's servers and stops all agent-related goroutines managing this application.
func (*NewRelic) StartTransaction ¶
func (nr *NewRelic) StartTransaction(name string) *newrelic.Transaction
StartTransaction begins a Transaction.
Click to show internal directories.
Click to hide internal directories.