mirror of
1
Fork 0
gotosocial/internal/tracing
Daenney 5f10885dde
[feature] Don't trace non-existing routes (#2172)
c.FullPath() is the empty string if a request doesn't match any route on
our mux. In those cases, there's no value in emitting a trace. The trace
will be empty, containing no other information beyond the fact that we
didn't match a route. Since Gin breaks off the processing early we don't
need to trace this request as it won't do anything and consumes no
further resources.

The 404 will still be emitted by our logs and will be visible from a
reverse proxy too.
2023-09-04 17:15:14 +02:00
..
no_trace.go feat: initial tracing support (#1623) 2023-05-09 18:19:48 +01:00
tracing.go [feature] Don't trace non-existing routes (#2172) 2023-09-04 17:15:14 +02:00