newrelic

package
v0.0.0-...-3000ae6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (*newrelic.Application, error)

func StartTransaction

func StartTransaction(nrApp *newrelic.Application, name string) *newrelic.Transaction

func WrapHandleFunc

func WrapHandleFunc(app *newrelic.Application, pattern string, handler func(http.ResponseWriter, *http.Request), options ...newrelic.TraceOption) (string, func(http.ResponseWriter, *http.Request))

Types

type Config

type Config struct {
	AppName    string `conf:"default:appName"`
	LicenseKey string `conf:"default:LicenceKey"`
}

Jump to

Keyboard shortcuts

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