Documentation ¶
Index ¶
- Variables
- func FromContext(ctx context.Context) context.Context
- func Get(ctx context.Context, k any) any
- func NewOTELMiddleware(tp *sdktrace.TracerProvider) (func(next http.Handler) http.Handler, func() error)
- func UserContext(ctx context.Context) context.Context
- func Value(ctx context.Context, k any) string
- type Opts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Tracer = trace.NewNoopTracerProvider().Tracer("noop") // no op by default (for tests, dev) Tracer = otel.Tracer("autoupdate-server") )
Functions ¶
func NewOTELMiddleware ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.