diff --git a/Dockerfile b/Dockerfile index 31db9baa..77737ddd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ ARG APP_INSIGHTS_AGENT_VERSION=3.4.9 ARG PLATFORM="" FROM hmctspublic.azurecr.io/base/java${PLATFORM}:17-distroless -COPY lib/AI-Agent.xml /opt/app/ +COPY lib/applicationinsights.json /opt/app/ COPY build/libs/rd-profile-sync.jar /opt/app/ EXPOSE 8092 diff --git a/build.gradle b/build.gradle index f6d31421..a2e3b0e3 100644 --- a/build.gradle +++ b/build.gradle @@ -339,7 +339,6 @@ dependencies { implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: '3.1.5' implementation "com.github.hmcts.java-logging:logging:${versions.reformLogging}" - implementation "com.github.hmcts.java-logging:logging-appinsights:${versions.reformLogging}" implementation ('com.github.hmcts:properties-volume-spring-boot-starter:0.1.1'){ exclude group: "org.springframework.security" exclude group: 'org.glassfish', module: 'jakarta.el' diff --git a/charts/rd-profile-sync/Chart.yaml b/charts/rd-profile-sync/Chart.yaml index 5b731620..314a39ae 100644 --- a/charts/rd-profile-sync/Chart.yaml +++ b/charts/rd-profile-sync/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "0.1" description: Reference data service for professional users name: rd-profile-sync -version: 0.0.22 +version: 0.0.23 dependencies: - name: java version: 4.0.13 diff --git a/charts/rd-profile-sync/values.yaml b/charts/rd-profile-sync/values.yaml index 4607562f..4e52e74f 100644 --- a/charts/rd-profile-sync/values.yaml +++ b/charts/rd-profile-sync/values.yaml @@ -23,8 +23,8 @@ java: alias: S2S_SECRET - name: profile-sync-POSTGRES-PASS alias: spring.datasource.password - - name: ApplicationInsightsInstrumentationKey - alias: azure.application-insights.instrumentation-key + - name: app-insights-connection-string + alias: app-insights-connection-string - name: OAUTH2-CLIENT-SECRET alias: idam.api-redirect-uri - name: OAUTH2-AUTH diff --git a/lib/AI-Agent.xml b/lib/AI-Agent.xml deleted file mode 100644 index a5cdcfe3..00000000 --- a/lib/AI-Agent.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - INFO - - - - - - - diff --git a/lib/applicationinsights-agent-2.5.1-BETA.jar b/lib/applicationinsights-agent-2.5.1-BETA.jar deleted file mode 100644 index 74dfa3ea..00000000 Binary files a/lib/applicationinsights-agent-2.5.1-BETA.jar and /dev/null differ