Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.function.Predicate;
import java.util.logging.Logger;
import javax.annotation.Nullable;

/** A builder for {@link PrometheusHttpServer}. */
Expand All @@ -27,8 +26,6 @@ public final class PrometheusHttpServerBuilder {
static final int DEFAULT_PORT = 9464;
private static final String DEFAULT_HOST = "localhost";
private static final MemoryMode DEFAULT_MEMORY_MODE = MemoryMode.REUSABLE_DATA;
private static final Logger LOGGER =
Logger.getLogger(PrometheusHttpServerBuilder.class.getName());

// Temporarily nullable to detect when it's not set and log warning about 0.0.0.0 -> localhost
// change
Expand Down Expand Up @@ -200,10 +197,6 @@ public PrometheusHttpServer build() {
}
String resolvedHost = host;
if (resolvedHost == null) {
// TODO (jack-berg): Remove log after 1.64.0 release
LOGGER.info(
"PrometheusHttpServer host not set, defaulting to localhost. Previously defaulted to 0.0.0.0. "
+ "If you depend on the old behavior, set host to 0.0.0.0 explicitly.");
resolvedHost = DEFAULT_HOST;
}
return new PrometheusHttpServer(
Expand Down
Loading