protected static void incrementErrorCounter(Registry registry, String counterName, String metricId, Http2Exception h2e) { String h2Error = h2e.error() != null ? h2e.error().name() : "NA"; String exceptionName = h2e.getClass().getSimpleName(); registry.counter(counterName, "id", metricId, "error", h2Error, "exception", exceptionName) .increment(); }
protected static void incrementErrorCounter(Registry registry, String counterName, String metricId, Http2Exception h2e) { String h2Error = h2e.error() != null ? h2e.error().name() : "NA"; String exceptionName = h2e.getClass().getSimpleName(); registry.counter(counterName, "id", metricId, "error", h2Error, "exception", exceptionName) .increment(); }
Http2ResetException(long errorCode) { super(String.format("Connection reset. Error - %s(%d)", Http2Error.valueOf(errorCode).name(), errorCode)); } }
Http2ResetException(long errorCode) { super(String.format("Connection reset. Error - %s(%d)", Http2Error.valueOf(errorCode).name(), errorCode)); } }
protected static void incrementErrorCounter(Registry registry, String counterName, String metricId, Http2Exception h2e) { String h2Error = h2e.error() != null ? h2e.error().name() : "NA"; String exceptionName = h2e.getClass().getSimpleName(); registry.counter(counterName, "id", metricId, "error", h2Error, "exception", exceptionName) .increment(); }