Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AuditAnnotationsFromLatencyTrackers (0.38 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration.go

    	if tracker, ok := LatencyTrackersFrom(ctx); ok {
    		tracker.DecodeTracker.TrackDuration(d)
    	}
    }
    
    // AuditAnnotationsFromLatencyTrackers will inspect each latency tracker
    // associated with the request context and return a set of audit
    // annotations that can be added to the API audit entry.
    func AuditAnnotationsFromLatencyTrackers(ctx context.Context) map[string]string {
    	const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 22:15:37 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit.go

    		return
    	}
    
    	// if we are tracking latency incurred inside different layers within
    	// the apiserver, add these as annotation to the audit event object.
    	layerLatencies := request.AuditAnnotationsFromLatencyTrackers(ctx)
    	if len(layerLatencies) == 0 {
    		// latency tracking is not enabled for this request
    		return
    	}
    
    	// record the total latency for this request, for convenience.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top