Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HTTPTarget (0.22 sec)

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

    		// Add the http.target attribute to the otelhttp span
    		// Workaround for https://github.com/open-telemetry/opentelemetry-go-contrib/issues/3743
    		if r.URL != nil {
    			trace.SpanFromContext(r.Context()).SetAttributes(semconv.HTTPTarget(r.URL.RequestURI()))
    		}
    		handler.ServeHTTP(w, r)
    	})
    	// With Noop TracerProvider, the otelhttp still handles context propagation.
    	// See https://github.com/open-telemetry/opentelemetry-go/tree/main/example/passthrough
    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