go-agent: github.com/newrelic/go-agent/_integrations/nrgorilla/v1 Index | Files | Directories

package nrgorilla

import "github.com/newrelic/go-agent/_integrations/nrgorilla/v1"

Package nrgorilla instruments https://github.com/gorilla/mux applications.

Use this package to instrument inbound requests handled by a gorilla mux.Router. Call nrgorilla.InstrumentRoutes on your gorilla mux.Router after your routes have been added to it.

Example: https://github.com/newrelic/go-agent/tree/master/_integrations/nrgorilla/v1/example/main.go

Index

Package Files

nrgorilla.go

func InstrumentRoutes Uses

func InstrumentRoutes(r *mux.Router, app newrelic.Application) *mux.Router

InstrumentRoutes instruments requests through the provided mux.Router. Use this after the routes have been added to the router.

Directories

PathSynopsis
example

Package nrgorilla imports 4 packages (graph) and is imported by 4 packages. Updated 2019-06-12. Refresh now. Tools for package owners.