mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Revert "Open telemetry integration (#3972)"
This reverts commit c738542201
.
This commit is contained in:
parent
690b63fc74
commit
2e2a044493
19 changed files with 10 additions and 1281 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue