newrelic

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 4 Imported by: 0

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

func SetTxnToGorm(txn *newrelic.Transaction, db *gorm.DB) *gorm.DB

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

Jump to

Keyboard shortcuts

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