Skip to content
Merged
Show file tree
Hide file tree
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
34 changes: 34 additions & 0 deletions calm-hub/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,40 @@
<artifactId>owasp-java-html-sanitizer</artifactId>
<version>20240325.1</version>
</dependency>

<!-- Caffeine in-memory cache. Use the Quarkus extension, not the bare
ben-manes jar: Caffeine builds its cache implementation reflectively,
and quarkus-caffeine supplies the native-image reflection config for
that (the bare jar would only fail this at native build time). It
pulls the ben-manes artifact transitively. -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-caffeine</artifactId>
</dependency>

<!-- JGit for GitHub clone/pull operations -->
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>7.2.0.202503040940-r</version>
</dependency>

<!-- Quarkus Scheduler for periodic sync -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-scheduler</artifactId>
</dependency>

<!-- OpenTelemetry + Micrometer observability -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-opentelemetry</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-micrometer-opentelemetry</artifactId>
</dependency>

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-oidc</artifactId>
Expand Down
35 changes: 34 additions & 1 deletion calm-hub/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,37 @@ calm.mcp.enabled=false
# Log every JSON-RPC message in dev mode for easier debugging of MCP clients.
%dev.quarkus.mcp.server.traffic-logging=true
quarkus.log.category."org.finos.calm".level=DEBUG
quarkus.log.category."org.mongodb.driver".level=OFF
quarkus.log.category."org.mongodb.driver".level=OFF

# OpenTelemetry — the extension is always compiled in (quarkus.otel.enabled is a
# build-time flag; a build-once-deploy-many pipeline can't flip it per environment)
# and disabled at runtime by default via the genuinely runtime-mutable
# quarkus.otel.sdk.disabled. Set CALM_OTEL_DISABLED=false on the deployed
# container/process to turn it on — no rebuild required.
quarkus.otel.service.name=${OTEL_SERVICE_NAME:calm-hub}
quarkus.otel.enabled=true
quarkus.otel.sdk.disabled=${CALM_OTEL_DISABLED:true}
quarkus.otel.exporter.otlp.endpoint=${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317}
quarkus.otel.traces.sampler=parentbased_traceidratio
quarkus.otel.traces.sampler.arg=${CALM_OTEL_SAMPLING_RATIO:1.0}
# Micrometer has no equivalent runtime-mutable switch — quarkus.micrometer.enabled
# and the binder .enabled properties below are all build-time-fixed (they decide
# which binder beans get compiled in at all), so CALM_OTEL_METRICS_ENABLED is a
# build-time knob: it must be set when the artifact is built, not per-deployment.
quarkus.micrometer.enabled=true
quarkus.micrometer.binder.http-server.enabled=${CALM_OTEL_METRICS_ENABLED:false}
quarkus.micrometer.binder.http-client.enabled=${CALM_OTEL_METRICS_ENABLED:false}

# Disable Micrometer to avoid noise across every test profile in this module —
# quarkus.micrometer.enabled is build/run-time-fixed per active profile NAME (the
# same pitfall the jacoco comment above documents), so a %test. prefix only
# applies when a test's QuarkusTestProfile.getConfigProfile() is literally "test";
# each custom profile name used in this module needs its own override or
# Micrometer's core registry (and its auto-enabled binders) stays active under it.
# quarkus.otel.sdk.disabled needs no such per-profile treatment: it's genuinely
# RUN_TIME-scoped and already defaults to disabled everywhere, tests included.
%test.quarkus.micrometer.enabled=false
%integration-test.quarkus.micrometer.enabled=false
%nitrite-integration-test.quarkus.micrometer.enabled=false
%secure.quarkus.micrometer.enabled=false
%proxy-auth.quarkus.micrometer.enabled=false
Loading