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 22 "selfDiagnostics" : {
33 "destination" : " console" ,
44 "level" : " INFO"
5+ },
6+ "sampling" : {
7+ "percentage" : 5 ,
8+ "overrides" : [
9+ {
10+ "telemetryType" : " exception" ,
11+ "percentage" : 100
12+ }
13+ ]
514 }
615}
Original file line number Diff line number Diff line change 11#! /bin/sh
22
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
38exec 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