mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
apf: add initial and final seats to httplog
This commit is contained in:
@@ -111,6 +111,7 @@ func WithPriorityAndFairness(
|
||||
httplog.AddKeyValue(ctx, "apf_pl", truncateLogField(pl.Name))
|
||||
httplog.AddKeyValue(ctx, "apf_fs", truncateLogField(fs.Name))
|
||||
httplog.AddKeyValue(ctx, "apf_fd", truncateLogField(flowDistinguisher))
|
||||
<<<<<<< HEAD
|
||||
}
|
||||
// estimateWork is called, if at all, after noteFn
|
||||
estimateWork := func() flowcontrolrequest.WorkEstimate {
|
||||
@@ -123,7 +124,12 @@ func WithPriorityAndFairness(
|
||||
return workEstimator(r, "", "")
|
||||
}
|
||||
|
||||
return workEstimator(r, classification.FlowSchemaName, classification.PriorityLevelName)
|
||||
workEstimate := workEstimator(r, classification.FlowSchemaName, classification.PriorityLevelName)
|
||||
if klog.V(4).Enabled() {
|
||||
httplog.AddKeyValue(ctx, "apf_iseats", workEstimate.InitialSeats)
|
||||
httplog.AddKeyValue(ctx, "apf_fseats", workEstimate.FinalSeats)
|
||||
}
|
||||
return workEstimate
|
||||
}
|
||||
|
||||
var served bool
|
||||
|
Reference in New Issue
Block a user