owenthereal / Negroni Gorelic
Licence: mit
negroni_gorelic is NewRelic middleware for negroni framework.
Stars: ✭ 27
Programming Languages
go
31211 projects - #10 most used programming language
negroni-gorelic
New Relic middleware for the negroni framework.
Usage
package main
import (
"fmt"
"net/http"
"github.com/codegangsta/negroni"
"github.com/jingweno/negroni-gorelic"
)
func main() {
r := http.NewServeMux()
r.HandleFunc(`/`, func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
fmt.Fprintf(w, "success!\n")
})
n := negroni.New()
n.Use(negronigorelic.New("NEW_RELIC_LICENSE_KEY", "example-app", true))
n.UseHandler(r)
n.Run(":3000")
}
See a running example.
Credits
A shout out to @yvasiyarov for his awesome work of gorelic.
License
negroni-gorelic is released under the MIT license. See LICENSE.md.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].