devops(backend): expose Prometheus metrics endpoint + OTLP trace export from Spring Boot #588
@@ -215,6 +215,14 @@
|
|||||||
<groupId>io.opentelemetry.instrumentation</groupId>
|
<groupId>io.opentelemetry.instrumentation</groupId>
|
||||||
<artifactId>opentelemetry-spring-boot-starter</artifactId>
|
<artifactId>opentelemetry-spring-boot-starter</artifactId>
|
||||||
<version>2.27.0</version>
|
<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>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,12 @@ spring:
|
|||||||
mail:
|
mail:
|
||||||
host: localhost
|
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.
|
# 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.
|
# Sampling probability 0.0 means no spans are created, so no export is attempted.
|
||||||
management:
|
management:
|
||||||
|
|||||||
Reference in New Issue
Block a user