Skip to content

Commit

Permalink
Merge pull request #37710 from geoand/metrics-exception
Browse files Browse the repository at this point in the history
Use NoStackTraceException in metrics
  • Loading branch information
geoand authored Dec 13, 2023
2 parents 1825141 + 542e93b commit f8e314f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import io.vertx.core.datagram.DatagramSocketOptions;
import io.vertx.core.http.HttpClientOptions;
import io.vertx.core.http.HttpServerOptions;
import io.vertx.core.impl.NoStackTraceException;
import io.vertx.core.metrics.MetricsOptions;
import io.vertx.core.net.NetClientOptions;
import io.vertx.core.net.NetServerOptions;
Expand Down Expand Up @@ -60,7 +61,7 @@ public MetricsOptions newOptions() {
@Override
public HttpServerMetrics<?, ?, ?> createHttpServerMetrics(HttpServerOptions options, SocketAddress localAddress) {
if (httpBinderConfiguration == null) {
throw new IllegalStateException("HttpBinderConfiguration was not found");
throw new NoStackTraceException("HttpBinderConfiguration was not found");
}
if (httpBinderConfiguration.isServerEnabled()) {
log.debugf("Create HttpServerMetrics with options %s and address %s", options, localAddress);
Expand Down

0 comments on commit f8e314f

Please sign in to comment.