WithSkipPaths allows skipping instrumentation for specific paths
(paths ...string)
| 113 | |
| 114 | // WithSkipPaths allows skipping instrumentation for specific paths |
| 115 | func WithSkipPaths(paths ...string) MiddlewareOption { |
| 116 | return func(c *middlewareConfig) { |
| 117 | for _, path := range paths { |
| 118 | c.skipPaths[path] = true |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | // handle404 returns a helpful 404 error with suggestions for common mistakes |
| 124 | func handle404(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
searching dependent graphs…