Skip to content

Commit 8a63f31

Browse files
authored
Double quote for java agent arg
1 parent d1d4903 commit 8a63f31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-monitor/app/java-spring-boot.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ You can enable the Azure Monitor Application Insights agent for Java by adding a
1515

1616
### Usual case
1717

18-
Add the JVM arg `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` somewhere before `-jar`, for example:
18+
Add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` somewhere before `-jar`, for example:
1919

2020
```
21-
java -javaagent:path/to/applicationinsights-agent-3.3.0.jar -jar <myapp.jar>
21+
java -javaagent:"path/to/applicationinsights-agent-3.3.0.jar" -jar <myapp.jar>
2222
```
2323

2424
### Spring Boot via Docker entry point
2525

26-
If you're using the *exec* form, add the parameter `"-javaagent:path/to/applicationinsights-agent-3.3.0.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
26+
If you're using the *exec* form, add the parameter `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` to the parameter list somewhere before the `"-jar"` parameter, for example:
2727

2828
```
2929
ENTRYPOINT ["java", "-javaagent:path/to/applicationinsights-agent-3.3.0.jar", "-jar", "<myapp.jar>"]
3030
```
3131

32-
If you're using the *shell* form, add the JVM arg `-javaagent:path/to/applicationinsights-agent-3.3.0.jar` somewhere before `-jar`, for example:
32+
If you're using the *shell* form, add the JVM arg `-javaagent:"path/to/applicationinsights-agent-3.3.0.jar"` somewhere before `-jar`, for example:
3333

3434
```
35-
ENTRYPOINT java -javaagent:path/to/applicationinsights-agent-3.3.0.jar -jar <myapp.jar>
35+
ENTRYPOINT java -javaagent:"path/to/applicationinsights-agent-3.3.0.jar" -jar <myapp.jar>
3636
```
3737

3838
## Programmatic configuration

0 commit comments

Comments
 (0)