File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 2
2
"selfDiagnostics" : {
3
3
"destination" : " console" ,
4
4
"level" : " INFO"
5
+ },
6
+ "sampling" : {
7
+ "percentage" : 5 ,
8
+ "overrides" : [
9
+ {
10
+ "telemetryType" : " exception" ,
11
+ "percentage" : 100
12
+ }
13
+ ]
5
14
}
6
15
}
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ version=$( cat META-INF/MANIFEST.MF | grep -oP ' Spring-Boot-Version: \K[\d.]+' )
4
+ version_major=${version: 0: 1}
5
+
6
+ # Check if the version_major is 3
7
+ if [[ " $version_major " == " 3" ]]; then
3
8
exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.launch.JarLauncher " $@ "
9
+ else
10
+ exec java -javaagent:/applicationinsights-agent.jar ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher " $@ "
11
+ fi
You can’t perform that action at this time.
0 commit comments