MCPcopy Index your code
hub / github.com/modelcontextprotocol/registry / WithSkipPaths

Function WithSkipPaths

internal/api/router/router.go:115–121  ·  view source on GitHub ↗

WithSkipPaths allows skipping instrumentation for specific paths

(paths ...string)

Source from the content-addressed store, hash-verified

113
114// WithSkipPaths allows skipping instrumentation for specific paths
115func 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
124func handle404(w http.ResponseWriter, r *http.Request) {

Callers 2

TestPrometheusHandlerFunction · 0.92
NewHumaAPIFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPrometheusHandlerFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…