mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: added server too busy stats (#717)
This commit is contained in:
@@ -227,7 +227,7 @@ func transformTimeout(e error, isRetriable bool) error {
|
||||
func (a *agent) handleStatsDequeue(ctx context.Context, call *call, err error) {
|
||||
if err == context.DeadlineExceeded {
|
||||
a.stats.Dequeue(ctx, call.AppName, call.Path)
|
||||
// note that this is not a timeout from the perspective of the caller, so don't increment the timeout count
|
||||
a.stats.IncrementTooBusy(ctx)
|
||||
} else {
|
||||
a.stats.DequeueAndFail(ctx, call.AppName, call.Path)
|
||||
a.stats.IncrementErrors(ctx)
|
||||
|
||||
Reference in New Issue
Block a user