MCPcopy
hub / github.com/grafana/dskit / getOperationName

Function getOperationName

middleware/http_tracing.go:296–301  ·  view source on GitHub ↗
(routeName string, r *http.Request)

Source from the content-addressed store, hash-verified

294}
295
296func getOperationName(routeName string, r *http.Request) string {
297 if routeName == "" {
298 return "HTTP " + r.Method
299 }
300 return fmt.Sprintf("HTTP %s - %s", r.Method, routeName)
301}

Callers 3

httpOperationNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected