Registry /
web-framework / newrelic-go-agent-v3-integrations-nrgin
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
nrgin
✓ github.com/newrelic/go-agent/v3/integrations/nrgin
Add New Relic monitoring to a Gin router.
package main
import (
"github.com/gin-gonic/gin"
"github.com/newrelic/go-agent/v3/integrations/nrgin"
"github.com/newrelic/go-agent/v3/newrelic"
)
func main() {
app, _ := newrelic.NewApplication(newrelic.ConfigAppName("My App"), newrelic.ConfigLicense("LICENSE_KEY"))
router := gin.Default()
router.Use(nrgin.Middleware(app))
router.GET("/", func(c *gin.Context) {
c.String(200, "Hello")
})
router.Run()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.4.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.