devops(backend): expose Prometheus metrics endpoint + OTLP trace export from Spring Boot #588

Merged
marcel merged 3 commits from feat/issue-576-backend-instrumentation into main 2026-05-15 03:57:15 +02:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 3a67f7820e - Show all commits

View File

@@ -215,6 +215,14 @@
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-spring-boot-starter</artifactId>
<version>2.27.0</version>
<exclusions>
<!-- Excludes AzureAppServiceResourceProvider which references ServiceAttributes.SERVICE_INSTANCE_ID
that does not exist in the semconv version pulled by this project. -->
<exclusion>
<groupId>io.opentelemetry.contrib</groupId>
<artifactId>opentelemetry-azure-resources</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

View File

@@ -14,6 +14,12 @@ spring:
mail:
host: localhost
# Disable OTel SDK entirely in tests — prevents auto-configuration from loading resource providers
# (e.g. AzureAppServiceResourceProvider) that fail against the semconv version used here.
otel:
sdk:
disabled: true
# Disable trace export in tests — prevents OTLP connection attempts when no Tempo is running.
# Sampling probability 0.0 means no spans are created, so no export is attempted.
management: