From e1696aeee0fff60efb54a8d86d330807ec6ecebf Mon Sep 17 00:00:00 2001 From: Tyler Benson Date: Tue, 18 Jul 2017 15:53:53 -0700 Subject: [PATCH] Update link that will automatically download the latest version --- dd-java-agent/README.md | 6 +++--- dd-trace/README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dd-java-agent/README.md b/dd-java-agent/README.md index 7a3c7a4656..0543320449 100644 --- a/dd-java-agent/README.md +++ b/dd-java-agent/README.md @@ -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/). ``` -# use latest version -curl -OL http://central.maven.org/maven2/com/datadoghq/dd-java-agent/{version}/dd-java-agent-{version}.jar +# download the latest published version: +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): ``` --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). diff --git a/dd-trace/README.md b/dd-trace/README.md index 601af4d7b9..193f6181ae 100644 --- a/dd-trace/README.md +++ b/dd-trace/README.md @@ -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/). ```bash -version=0.1.1 -curl -OL http://central.maven.org/maven2/com/datadoghq/dd-java-agent/${version}/dd-java-agent-${version}.jar +# download the latest published version: +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. ```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.