Documentation ¶
Overview ¶
Package newrelic provides custom wrpapers for newrelic. this includes a gorm callback.
Package newrelic provides custom wrpapers for newrelic. nolint
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGormCallbacks ¶
func AddGormCallbacks(db *gorm.DB, txnFactory CreateTransactionFunc)
AddGormCallbacks adds callbacks to NewRelic, you should call SetTxnToGorm to make them work
func SetTxnToGorm ¶
SetTxnToGorm sets transaction to gorm settings, returns cloned DB
Types ¶
type CreateTransactionFunc ¶
type CreateTransactionFunc func(name string, opts ...newrelic.TraceOption) *newrelic.Transaction
CreateTransactionFunc creates a newrelic transaction if one does not exist
Click to show internal directories.
Click to hide internal directories.