We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56da26a commit cee8be1Copy full SHA for cee8be1
docker/applicationinsights.json
@@ -2,5 +2,14 @@
2
"selfDiagnostics": {
3
"destination": "console",
4
"level": "INFO"
5
+ },
6
+ "sampling": {
7
+ "percentage": 5,
8
+ "overrides": [
9
+ {
10
+ "telemetryType": "exception",
11
+ "percentage": 100
12
+ }
13
+ ]
14
}
15
docker/run.sh
@@ -1,3 +1,11 @@
1
#!/bin/sh
+version=$(cat META-INF/MANIFEST.MF | grep -oP 'Spring-Boot-Version: \K[\d.]+')
+version_major=${version:0:1}
+
+# Check if the version_major is 3
+if [[ "$version_major" == "3" ]]; then
exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.launch.JarLauncher "$@"
+else
+ exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher "$@"
+fi
0 commit comments