Skip to content

Commit

Permalink
Merge pull request #578 from hmcts/PAY-6796-Appinsights-Migration
Browse files Browse the repository at this point in the history
PAY-6796: Application Insights migration to version 3.4
  • Loading branch information
davejones74 authored May 28, 2024
2 parents b030a5f + 3e7fcc5 commit a6033bb
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 16 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
ARG APP_INSIGHTS_AGENT_VERSION=2.5.1
ARG APP_INSIGHTS_AGENT_VERSION=3.4.14
FROM hmctspublic.azurecr.io/base/java:17-distroless

EXPOSE 8080

COPY lib/applicationinsights.json /opt/app/
COPY build/libs/fees-register-app.jar /opt/app/
COPY lib/AI-Agent.xml /opt/app/

CMD ["fees-register-app.jar"]
EXPOSE 8080

CMD [ \
"--add-opens", "java.base/java.lang=ALL-UNNAMED", \
"fees-register-app.jar" \
]
2 changes: 1 addition & 1 deletion charts/fees-register-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "2.0"
description: Helm chart for the HMCTS fees-register api
name: fees-register-api
home: https://github.com/hmcts/ccfr-fees-register-app
version: 0.4.7
version: 0.4.8
maintainers:
- name: HMCTS Fees & Payments Dev Team
email: [email protected]
Expand Down
10 changes: 0 additions & 10 deletions lib/AI-Agent.xml

This file was deleted.

Binary file removed lib/applicationinsights-agent-2.3.1.jar
Binary file not shown.
23 changes: 23 additions & 0 deletions lib/applicationinsights.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"connectionString": "${file:/mnt/secrets/ccpay/app-insights-connection-string}",
"role": {
"name": "fees-register-app"
},
"preview": {
"sampling": {
"overrides": [
{
"telemetryType": "request",
"attributes": [
{
"key": "http.url",
"value": "https?://[^/]+/health.*",
"matchType": "regexp"
}
],
"percentage": 1
}
]
}
}
}

0 comments on commit a6033bb

Please sign in to comment.