Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Latest commit

 

History

History

gorelic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Gorelic

NewRelic middleware for yvasiyarov/gorelic

Installation

go get github.com/syntaqx/echo-middleware/gorelic

Usage

package main

import (
    "github.com/labstack/echo"
    "github.com/syntaqx/echo-middleware/gorelic"
)

func main() {
    e := echo.New()

    // Attach middleware
    gorelic.InitNewRelicAgent("YOUR_LICENSE_KEY", "YOUR_APPLICATION_NAME", true)
    e.Use(gorelic.Handler())

    e.Run(":8080")
}