diff --git a/Dockerfile b/Dockerfile
index ba74077..3ebd8ad 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,11 @@
-FROM maven:3.9.0-amazoncorretto-17@sha256:0d683f66624265935e836c9d2c3851ce3cf250cb48c9929d979d8d80f62d8590 as buildtime
+FROM maven:3.9.0-amazoncorretto-17@sha256:0d683f66624265935e836c9d2c3851ce3cf250cb48c9929d979d8d80f62d8590 AS buildtime
WORKDIR /build
COPY . .
RUN mvn clean package -DskipTests
-FROM amazoncorretto:17.0.6-al2@sha256:86ad3a5620d6f7590f59fb6067b98687367e49e632a5ee719fb03bc9ffd1499f as runtime
+FROM amazoncorretto:17.0.6-al2@sha256:86ad3a5620d6f7590f59fb6067b98687367e49e632a5ee719fb03bc9ffd1499f AS runtime
VOLUME /tmp
WORKDIR /app
@@ -14,7 +14,5 @@ RUN useradd --uid 10000 runner
USER 10000
COPY --from=buildtime /build/target/*.jar /app/app.jar
-# The agent is enabled at runtime via JAVA_TOOL_OPTIONS.
-ADD https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.4.7/applicationinsights-agent-3.4.7.jar /app/applicationinsights-agent.jar
ENTRYPOINT ["java","-jar","/app/app.jar"]
diff --git a/helm/rtd/values.yaml b/helm/rtd/values.yaml
index c92fe76..eccc0e5 100644
--- a/helm/rtd/values.yaml
+++ b/helm/rtd/values.yaml
@@ -52,16 +52,10 @@ microservice-chart:
runAsUser: 10000
runAsGroup: 10000
- envConfig:
- APPLICATIONINSIGHTS_PREVIEW_PROFILER_ENABLED: "false"
-
envSecret:
MONGODB_CONNECTION_URI: mongo-db-connection-uri
APPLICATIONINSIGHTS_CONNECTION_STRING: appinsights-instrumentation-key
envConfigMapExternals:
rtdsenderauth:
- JAVA_TOOL_OPTIONS: JAVA_TOOL_OPTIONS
- APPLICATIONINSIGHTS_ROLE_NAME: APPLICATIONINSIGHTS_ROLE_NAME
- APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL: APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL
- APPLICATIONINSIGHTS_INSTRUMENTATION_MICROMETER_ENABLED: APPLICATIONINSIGHTS_INSTRUMENTATION_MICROMETER_ENABLED
+ OPENTELEMETRY_LOG_LEVEL: APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL
diff --git a/pom.xml b/pom.xml
index d3e9d32..3addeb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
it.gov.pagopa.rtd.ms
rtd-ms-sender-auth
- 1.1.2
+ 1.1.3
rtd-ms-sender-auth
micro-service responsible to store the association between sender code and api key
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index ccf8449..e47491f 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -28,6 +28,7 @@ management:
enabled: true
applicationinsights.enabled: '@applicationinsights.enabled@'
+otel.log.level: ${OPENTELEMETRY_LOG_LEVEL:INFO}
otel.instrumentation.logback-appender.enabled: true # enable logback instrumentation
otel.traces.sampler.probability: 1.0 # sample probability for tracing (spans)
otel.metric.export.interval: 60000 # sampling rate for metrics (millis)
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index c86ba1b..f0b9b14 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -8,10 +8,16 @@
utf8
+
+
true
*
+
+
+ ${otelLogLevel}
+