Update link that will automatically download the latest version
This commit is contained in:
parent
f48f2bbc53
commit
e1696aeee0
|
@ -36,14 +36,14 @@ To dynamically apply instrumentation you simply have to declare the provided `ja
|
||||||
*NOTE:* While in beta, the latest version is best found on the [Snapshot Repo](https://oss.jfrog.org/artifactory/oss-snapshot-local/com/datadoghq/).
|
*NOTE:* While in beta, the latest version is best found on the [Snapshot Repo](https://oss.jfrog.org/artifactory/oss-snapshot-local/com/datadoghq/).
|
||||||
|
|
||||||
```
|
```
|
||||||
# use latest version
|
# download the latest published version:
|
||||||
curl -OL http://central.maven.org/maven2/com/datadoghq/dd-java-agent/{version}/dd-java-agent-{version}.jar
|
wget -O dd-java-agent.jar 'https://search.maven.org/remote_content?g=com.datadoghq&a=dd-java-agent&v=LATEST'
|
||||||
```
|
```
|
||||||
|
|
||||||
- Then add the following JVM argument when launching your application (in your IDE, your maven or gradle application script, or your `java -jar` command):
|
- Then add the following JVM argument when launching your application (in your IDE, your maven or gradle application script, or your `java -jar` command):
|
||||||
|
|
||||||
```
|
```
|
||||||
-javaagent:/path/to/the/dd-java-agent-{version}.jar
|
-javaagent:/path/to/the/dd-java-agent.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it! If you did this properly the agent was executed at pre-main, had detected and instrumented the supported libraries and custom traces. You should then see traces on [Datadog APM](https://app.datadoghq.com/apm/search).
|
That's it! If you did this properly the agent was executed at pre-main, had detected and instrumented the supported libraries and custom traces. You should then see traces on [Datadog APM](https://app.datadoghq.com/apm/search).
|
||||||
|
|
|
@ -93,13 +93,13 @@ Get the latest version of the Datadog Java agent (Do not forget to replace the v
|
||||||
*NOTE:* While in beta, the latest version is best found on the [Snapshot Repo](https://oss.jfrog.org/artifactory/oss-snapshot-local/com/datadoghq/).
|
*NOTE:* While in beta, the latest version is best found on the [Snapshot Repo](https://oss.jfrog.org/artifactory/oss-snapshot-local/com/datadoghq/).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
version=0.1.1
|
# download the latest published version:
|
||||||
curl -OL http://central.maven.org/maven2/com/datadoghq/dd-java-agent/${version}/dd-java-agent-${version}.jar
|
wget -O dd-java-agent.jar 'https://search.maven.org/remote_content?g=com.datadoghq&a=dd-java-agent&v=LATEST'
|
||||||
```
|
```
|
||||||
Then, attach the Java agent to your JVM using th `javaagent` option.
|
Then, attach the Java agent to your JVM using th `javaagent` option.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
java -javaagent:/path/to/dd-java-agent-${version}.jar ...
|
java -javaagent:/path/to/dd-java-agent.jar ...
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have a local Datadog agent running on your host, traces are visible in your Datadog account.
|
If you have a local Datadog agent running on your host, traces are visible in your Datadog account.
|
||||||
|
|
Loading…
Reference in New Issue