mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
168242e725
* refactor: switch from opencensus to opentelemetry * tempo works as designed nooooot * fix: log traceids * with grafana agent * fix: http tracing * fix: cleanup files * chore: remove todo * fix: bad test * fix: ignore methods in grpc interceptors * fix: remove test log * clean up * typo * fix(config): configure tracing endpoint * fix(span): add error id to span
19 lines
453 B
Go
19 lines
453 B
Go
package middleware
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
http_utils "github.com/caos/zitadel/internal/api/http"
|
|
"github.com/caos/zitadel/internal/tracing"
|
|
)
|
|
|
|
func DefaultTraceHandler(handler http.Handler) http.Handler {
|
|
return TraceHandler(http_utils.Probes...)(handler)
|
|
}
|
|
|
|
func TraceHandler(ignoredMethods ...string) func(http.Handler) http.Handler {
|
|
return func(handler http.Handler) http.Handler {
|
|
return tracing.TraceHandler(handler, ignoredMethods...)
|
|
}
|
|
}
|