aws / aws-xray-sdk-go

AWS X-Ray SDK for the Go programming language.
Apache License 2.0
278 stars 117 forks source link

echo Middleware #28

Open rvdwijngaard opened 7 years ago

rvdwijngaard commented 7 years ago

Hi,

Do you have any plans to support popular web frameworks like labstack echo ?

haotianw465 commented 6 years ago

Thanks for your feedback. We will look into this and we're planning on support more libraries and web frameworks in the next calendar year. Please stay tuned.

andizzle commented 5 years ago

@rvdwijngaard with echo 3.0+ you can create a middleware to start tracking

var xr = func() echo.MiddlewareFunc {
        return echo.WrapMiddleware(func(h http.Handler) http.Handler {
                return xray.Handler(xray.NewFixedSegmentNamer(".com"), h)
        })
}
a-berahman commented 3 years ago

@andizzle In this case, How do you handle url skipper?

a-berahman commented 3 years ago

it works for me https://goplay.space/#hMVZqdhEOt7