Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WithPropagators (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filters/traces.go

    )
    
    // WithTracing adds tracing to requests if the incoming request is sampled
    func WithTracing(handler http.Handler, tp trace.TracerProvider) http.Handler {
    	opts := []otelhttp.Option{
    		otelhttp.WithPropagators(tracing.Propagators()),
    		otelhttp.WithPublicEndpoint(),
    		otelhttp.WithTracerProvider(tp),
    		otelhttp.WithSpanNameFormatter(func(operation string, r *http.Request) string {
    			ctx := r.Context()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 15 01:42:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top