zitadel-oidc/internal/otel/otel.go
Jan-Otto Kröpke 21e830e275
feat: exclude OTEL instrumentation via build tag (#770)
* feat: exclude OTEL instrumentation via build tag

* add readme
2025-07-16 11:29:59 +00:00

12 lines
177 B
Go

//go:build !no_otel
package otel
import (
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/trace"
)
func Tracer(name string) trace.Tracer {
return otel.Tracer(name)
}