Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WithPropagators (0.13 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)
  2. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    	}
    	if utilfeature.DefaultFeatureGate.Enabled(genericfeatures.APIServerTracing) {
    		tracingOpts := []otelgrpc.Option{
    			otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents),
    			otelgrpc.WithPropagators(tracing.Propagators()),
    			otelgrpc.WithTracerProvider(c.TracerProvider),
    		}
    		// Even with Noop  TracerProvider, the otelgrpc still handles context propagation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top