gorelic

package
v0.0.164 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: BSD-3-Clause, GPL-2.0 Imports: 5 Imported by: 0

README

GoRelic

NewRelic middleware for martini framework.

Usage

import(
	"github.com/go-martini/martini"
	"github.com/martini-contrib/gorelic"
)

func main(){
	m := martini.Classic()

	gorelic.InitNewrelicAgent("YOUR_NEWRELIC_LICENSE_KEY", "YOUR_APPLICATION_NAME", true)
	m.Use(gorelic.Handler)

	m.Run()
}

Authors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(c martini.Context)

func InitNewrelicAgent

func InitNewrelicAgent(license string, appname string, verbose bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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