nriris

package module
v0.0.0-...-ad23720 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

nr-iris

NewRelic instrumentation helpers for iris

Usage

Instrumenting web transactions
app.HandleFunc("POST", "/orders", nriris.WrapHandler("/orders", createOrder))
Getting newrelic.Transaction:
func handler (ctx *iris.Context) {
    txn := nriris.GetTransaction(ctx)
}

For complete documentation, check here.

License

See here.

Documentation

Index

Constants

View Source
const NewRelicTransaction = "__newrelic_transaction__"

Variables

This section is empty.

Functions

func Apply

func Apply(nr newrelic.Application, app *iris.Framework)

func GetTransaction

func GetTransaction(ctx *iris.Context) newrelic.Transaction

func WrapHandlerFunc

func WrapHandlerFunc(app newrelic.Application, name string, handler iris.HandlerFunc) iris.HandlerFunc

Types

type NewRelic

type NewRelic struct {
	App newrelic.Application
}

type Response

type Response struct {
	// contains filtered or unexported fields
}

func NewResponse

func NewResponse(ctx *iris.Context) Response

func (Response) Code

func (r Response) Code() int

func (Response) Header

func (r Response) Header() nrhttp.Header

func (Response) Request

func (r Response) Request() nrhttp.Request

Jump to

Keyboard shortcuts

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