Documentation ¶
Index ¶
- func InitNewRelic(appName string, key string)
- func NewRelicGinMiddleware() gin.HandlerFunc
- func StartNewRelicCustomSegment(ctx context.Context, name string) context.CancelFunc
- func StartNewRelicDBSegment(ctx context.Context, operation string, collection string) context.CancelFunc
- func WrapHandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) (string, func(http.ResponseWriter, *http.Request))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitNewRelic ¶
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.
Click to show internal directories.
Click to hide internal directories.