Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//Global Newrelic Client
NewrelicClient = newClient()
)
Functions ¶
This section is empty.
Types ¶
type NewRelicClient ¶
type NewRelicClient struct {
// contains filtered or unexported fields
}
Wrapper for newrelic.Application
func (*NewRelicClient) StartTransaction ¶
func (c *NewRelicClient) StartTransaction(name string, w http.ResponseWriter, r *http.Request) Transaction
Wrapper to only start the transaction if the newrelic application struct was successfully instantiated
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Wrapper for newrelic.Transaction
func (*Transaction) End ¶
func (t *Transaction) End() error
Wrapper to end a transaction only if the newrelic transaction struct was created
Click to show internal directories.
Click to hide internal directories.