зеркало из https://github.com/Azure/ARO-RP.git
Merge pull request #3949 from Azure/s-fairchild/ARO-10816-resulttype-metric
Pass backendErr to emitMetrics
This commit is contained in:
Коммит
6b51a35156
|
@ -311,7 +311,7 @@ func (ocb *openShiftClusterBackend) endLease(ctx context.Context, log *logrus.En
|
|||
return err
|
||||
}
|
||||
ocb.asyncOperationResultLog(log, initialProvisioningState, backendErr)
|
||||
ocb.emitMetrics(log, doc, operationType, provisioningState, nil)
|
||||
ocb.emitMetrics(log, doc, operationType, provisioningState, backendErr)
|
||||
ocb.emitProvisioningMetrics(doc, provisioningState)
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ func (ocb *openShiftClusterBackend) endLease(ctx context.Context, log *logrus.En
|
|||
stop()
|
||||
}
|
||||
|
||||
ocb.emitMetrics(log, doc, operationType, provisioningState, nil)
|
||||
ocb.emitMetrics(log, doc, operationType, provisioningState, backendErr)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче