Registry / web-framework / newrelic-go-agent-v3-integrations-nrgin

newrelic-go-agent-v3-integrations-nrgin

JSON →
library1.4.2gogounverified

Instrument Gin web framework applications with New Relic Go Agent.

go get github.com/newrelic/go-agent/v3/integrations/nrgin
INSTALL
IMPORT
SIG · NEWRELIC-GO-AGENT-
N
newrelic-go-agent-v3-integrations-nrgin
web-frameworkgov1.4.2
harness data pending
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.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
2
Resources
newrelic-go-agent-v3-integrations-nrgin — go get newrelic-go-agent-v3-integrations-nrgin · libregistry