fix(metrics): some use cases generates 'failed to parse api-response-time'
fix gravitee-io/issues#2989
@@ -200,7 +200,7 @@ public class ApiReactorHandler extends AbstractReactorHandler implements Initial
private void handleError(ExecutionContext context, ProcessorFailure failure) {
- if (context.request().metrics().getApiResponseTimeMs() > 0) {
+ if (context.request().metrics().getApiResponseTimeMs() > Integer.MAX_VALUE) {
context.request().metrics().setApiResponseTimeMs(System.currentTimeMillis() -
context.request().metrics().getApiResponseTimeMs());
}
