go-gin icon indicating copy to clipboard operation
go-gin copied to clipboard

OpenTracing middleware for gin-gonic

Results 3 go-gin issues
Sort by recently updated
recently updated
newest added

We would like to be able to set the span operation name to the matched gin route, however currently this is difficult. For example, if there is a route `/user/:name`,...

Some APM providers (like Datadog) require the span error tag to be set in order to properly display the status of the trace. This PR will add a new MWOption...

In func Middleware, `c.Next` would be panic, then span.Finish will not be executed. ```go //... return func(c *gin.Context) { carrier := opentracing.HTTPHeadersCarrier(c.Request.Header) ctx, _ := tr.Extract(opentracing.HTTPHeaders, carrier) op := opts.opNameFunc(c.Request)...