feat(spot): added correct methods filter for api tracer
This commit is contained in:
parent
1a44c0c9c3
commit
de691e0f8d
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,10 @@ func (e *Router) logRequest(r *http.Request, bodyBytes []byte, statusCode int) {
|
|||
e.log.Error(r.Context(), "failed to get path template: %s", err)
|
||||
}
|
||||
e.log.Info(r.Context(), "path template: %s", pathTemplate)
|
||||
if _, ok := routeMatch[r.Method+pathTemplate]; !ok {
|
||||
e.log.Debug(r.Context(), "no match for route: %s %s", r.Method, pathTemplate)
|
||||
return
|
||||
}
|
||||
// Convert the parameters to json
|
||||
query := r.URL.Query()
|
||||
params := make(map[string]interface{})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue