Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for trackCompleted (0.23 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency.go

    	return trackStarted(handler, tp, name, clock.RealClock{})
    }
    
    // TrackCompleted measures the timestamp the given handler has completed execution and then
    // it updates the corresponding metric with the filter latency duration.
    func TrackCompleted(handler http.Handler) http.Handler {
    	return trackCompleted(handler, clock.RealClock{}, func(ctx context.Context, fr *requestFilterRecord, completedAt time.Time) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 04 01:19:55 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filterlatency/filterlatency_test.go

    	)
    	handler := http.HandlerFunc(func(_ http.ResponseWriter, req *http.Request) {
    		// we expect the handler to be invoked just once.
    		handlerCallCount++
    	})
    
    	requestFilterEndedAt := time.Now()
    	wrapped := trackCompleted(handler, testingclock.NewFakeClock(requestFilterEndedAt), func(_ context.Context, fr *requestFilterRecord, completedAt time.Time) {
    		actionCallCount++
    		filterRecordGot = fr
    		filterCompletedAtGot = completedAt
    	})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:57:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/config.go

    	}
    
    	handler = filterlatency.TrackCompleted(handler)
    	handler = genericapifilters.WithImpersonation(handler, c.Authorization.Authorizer, c.Serializer)
    	handler = filterlatency.TrackStarted(handler, c.TracerProvider, "impersonation")
    
    	handler = filterlatency.TrackCompleted(handler)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
Back to top