@Override
    public void handshakeFailed(Event event, Throwable throwable) {
        log.log(Level.FINE, throwable, () -> "Ssl handshake failed: " + throwable.getMessage());
        String metricName = SslHandshakeFailure.fromSslHandshakeException((SSLHandshakeException) throwable)
                .map(SslHandshakeFailure::metricName)
                .orElse(MetricDefinitions.SSL_HANDSHAKE_FAILURE_UNKNOWN);
        metric.add(metricName, 1L, metric.createContext(createDimensions(event)));
    }
A {@link SslHandshakeListener} that reports metrics for SSL handshake failures.

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/SslHandshakeFailedListener.java