diff --git a/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/StaticConfigSource.java b/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/StaticConfigSource.java index 5819ecf2f..220491e33 100644 --- a/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/StaticConfigSource.java +++ b/jvm-runtime/ftl-runtime/common/deployment/src/main/java/xyz/block/ftl/deployment/StaticConfigSource.java @@ -7,6 +7,7 @@ public class StaticConfigSource implements ConfigSource { public static final String QUARKUS_BANNER_ENABLED = "quarkus.banner.enabled"; + final static String OTEL_METRICS_ENABLED = "quarkus.otel.metrics.enabled"; @Override public Set getPropertyNames() { @@ -15,8 +16,13 @@ public Set getPropertyNames() { @Override public String getValue(String propertyName) { - if (propertyName.equals(QUARKUS_BANNER_ENABLED)) { - return "false"; + switch (propertyName) { + case (QUARKUS_BANNER_ENABLED) -> { + return "false"; + } + case OTEL_METRICS_ENABLED -> { + return "true"; + } } return null; }