Revert "Adding the debug bar logic in the server (#22410)" (#22478)

This reverts commit 280bc7f97e.
Этот коммит содержится в:
Jesse Hallam
2023-03-10 14:30:17 -04:00
коммит произвёл GitHub
родитель 6a9c4ad56b
Коммит ea3ff49b35
34 изменённых файлов: 54 добавлений и 16293 удалений

Просмотреть файл

@@ -401,20 +401,6 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
statusCode = strconv.Itoa(w.(*responseWriterWrapper).StatusCode())
if c.App.Srv().DebugBar().IsEnabled() {
elapsed := float64(time.Since(now)) / float64(time.Second)
var endpoint string
if strings.HasPrefix(r.URL.Path, model.APIURLSuffixV5) {
// It's a graphQL query, so use the operation name.
endpoint = c.GraphQLOperationName
} else {
endpoint = h.HandlerName
}
c.App.Srv().DebugBar().SendApiCall(endpoint, r.Method, statusCode, elapsed)
}
if c.App.Metrics() != nil {
c.App.Metrics().IncrementHTTPRequest()