gitea/routers/common
wxiaoguang 7069369e03
Support performance trace ()
1. Add a OpenTelemetry-like shim-layer to collect traces
2. Add a simple builtin trace collector and exporter, end users could
download the diagnosis report to get the traces.

This PR's design is quite lightweight, no hard-dependency, and it is
easy to improve or remove. We can try it on gitea.com first to see
whether it works well, and fine tune the details.

---------

Co-authored-by: silverwind <me@silverwind.io>
..
auth.go Move context from modules to services ()
codesearch.go Fix bleve fuzziness search ()
compare.go feat(api): implement branch/commit comparison API ()
db.go Refactor the DB migration system slightly ()
deadline.go Fix milestone deadline and date related problems ()
errpage.go Refactor template & test related code ()
errpage_test.go Refactor request context ()
lfs.go Fix LFS route mock, realm, middleware names ()
markup.go Fix markup render regression and fix some tests ()
middleware.go Support performance trace ()
redirect.go Refactor AppURL usage ()
serve.go Move context from modules to services ()