tracer icon indicating copy to clipboard operation
tracer copied to clipboard

example with sla

Open kamilsk opened this issue 5 years ago • 0 comments

func Middleware(handler http.Handler) http.Handler {
  return http.HandlerFunc(func (...) {
    ctx := context.WithValue(req.Context(), key, tracer)
    http.ServeHTTP(rw, req.WithContex(ctx))
    if ctx.Err() != nil {
      // fetch tracer, write trace into Sentry
    }
  })
}

kamilsk avatar Aug 15 '19 08:08 kamilsk