Revert "Open telemetry integration (#3972)"

This reverts commit c738542201.
This commit is contained in:
TheFox0x7 2024-08-07 11:22:43 +02:00
parent 690b63fc74
commit 2e2a044493
No known key found for this signature in database
GPG key ID: 6CA33903484AF7C2
19 changed files with 10 additions and 1281 deletions

View file

@ -18,7 +18,6 @@ import (
"gitea.com/go-chi/session"
"github.com/chi-middleware/proxy"
chi "github.com/go-chi/chi/v5"
"github.com/riandyrn/otelchi"
)
// ProtocolMiddlewares returns HTTP protocol related middlewares, and it provides a global panic recovery
@ -69,9 +68,6 @@ func ProtocolMiddlewares() (handlers []any) {
if setting.IsAccessLogEnabled() {
handlers = append(handlers, context.AccessLogger())
}
if setting.IsOpenTelemetryEnabled() {
handlers = append(handlers, otelchi.Middleware("forgejo"))
}
return handlers
}