newrelic

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitNewRelic

func InitNewRelic(appName string, key string)

InitNewRelic init the client application of New Relic, for metrics and monitoring

func NewRelicGinMiddleware added in v0.2.0

func NewRelicGinMiddleware() gin.HandlerFunc

func StartNewRelicCustomSegment

func StartNewRelicCustomSegment(ctx context.Context, name string) context.CancelFunc

StartNewRelicCustomSegment creates a custom segment for metrics/monitoring, by passing the transaction context and a custom name

func StartNewRelicDBSegment

func StartNewRelicDBSegment(ctx context.Context, operation string, collection string) context.CancelFunc

StartNewRelicDBSegment creates a SQL database segment for metrics/monitoring, by passing the transaction context and operation (select, insert)

func WrapHandleFunc

func WrapHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) (string, func(http.ResponseWriter, *http.Request))

WrapHandleFunc instruments handler functions using transactions. To record route/handler transactions in New Relic

Types

This section is empty.

Jump to

Keyboard shortcuts

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