revelnewrelic

package
v0.0.0-...-96ffb46 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

README

NewRelic

This module is the for NewRelic it wraps the Go http server and inserts a filter to track each requests.

###App.conf

  • server.engine You must set this to newrelic in order to use this server engine
  • server.newrelic.license The license key for NewRelic
  • server.newrelic.addfilter Defauls true When true a filter is inserted into revel.Filters at position 2. This filter logs every request.

###Other Notes There is a controller called RelicController which contains a single method to return a newrelic.Application object. If you want to access this object you can extend that class.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRelicFilter

func NewRelicFilter(c *revel.Controller, fc []revel.Filter)

This is a simplistic example of setting up a filter to record all events for the webserver as transactions.

Types

type ServerNewRelic

type ServerNewRelic struct {
	NewRelicConfig *newrelic.Config
	NewRelicApp    newrelic.Application
	revel.GoHttpServer
}

func (*ServerNewRelic) Engine

func (nr *ServerNewRelic) Engine() interface{}

func (*ServerNewRelic) Event

func (nr *ServerNewRelic) Event(event revel.Event, args interface{}) revel.EventResponse

func (*ServerNewRelic) Init

func (nr *ServerNewRelic) Init(init *revel.EngineInit)

func (*ServerNewRelic) Name

func (nr *ServerNewRelic) Name() string

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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