From 84cb9687ccf22302976fb9188f6138ec49dc523a Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Thu, 28 Mar 2024 14:40:12 -0400 Subject: [PATCH 01/11] add an additional java agent api step --- .../java-agent/installation/update-java-agent.mdx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index 047112736ff..1d7056df684 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -28,8 +28,17 @@ Then, to update to the latest Java agent version: 1. Back up the **entire** [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent) to another location. Rename that directory to `NewRelic_Agent#.#.#`, where `#.#.#` is the agent version number. 2. [Download the agent.](/docs/release-notes/agent-release-notes/java-release-notes) 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). -4. Compare your old `newrelic.yml` with the newly downloaded `newrelic.yml` from the zip, and [update the file if needed](#diff). -5. Restart your Java dispatcher. +4. If you are using the [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/), upgrade your API dependency as well to the latest version. If you are using the agent APIs via a build tool like maven, upgrade the API versions to latest. For example if you are using maven where `{agent.version}` is a placeholder for the upgraded agent version: + ```xml + + com.newrelic.agent.java + newrelic-api + {agent.version} + + ``` + If you are directly using the `newrelic-api.jar`, copy that same jar from the unzipped file from step 3 into your classpath. +5. Compare your old `newrelic.yml` with the newly downloaded `newrelic.yml` from the zip, and [update the file if needed](#diff). +6. Restart your Java dispatcher. If you experience issues after the Java agent update, restore from the backed-up New Relic agent directory. From 7f97b6bfae8ae489d8923b793c9fe3d050b2606c Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Thu, 28 Mar 2024 15:03:22 -0400 Subject: [PATCH 02/11] Improve wording of step 4 of java agent updgrade --- .../apm/agents/java-agent/installation/update-java-agent.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index 1d7056df684..ac5aa6e22b4 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -28,7 +28,7 @@ Then, to update to the latest Java agent version: 1. Back up the **entire** [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent) to another location. Rename that directory to `NewRelic_Agent#.#.#`, where `#.#.#` is the agent version number. 2. [Download the agent.](/docs/release-notes/agent-release-notes/java-release-notes) 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). -4. If you are using the [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/), upgrade your API dependency as well to the latest version. If you are using the agent APIs via a build tool like maven, upgrade the API versions to latest. For example if you are using maven where `{agent.version}` is a placeholder for the upgraded agent version: +4. If you are using the any of the agent APIs like our [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), upgrade your API dependencies as well to the latest version. If you are using a build tool like maven, upgrade the API versions to latest. For example if you are using the Java Agent API with maven where `{agent.version}` is a placeholder for the upgraded agent version: ```xml com.newrelic.agent.java From 8f37edd1287fdeb0e8e5a92aeda16c619b587a51 Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Thu, 28 Mar 2024 15:20:50 -0400 Subject: [PATCH 03/11] Reword step 4 to remove mention of the api jar --- .../apm/agents/java-agent/installation/update-java-agent.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index ac5aa6e22b4..8ceae09491f 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -28,7 +28,7 @@ Then, to update to the latest Java agent version: 1. Back up the **entire** [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent) to another location. Rename that directory to `NewRelic_Agent#.#.#`, where `#.#.#` is the agent version number. 2. [Download the agent.](/docs/release-notes/agent-release-notes/java-release-notes) 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). -4. If you are using the any of the agent APIs like our [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), upgrade your API dependencies as well to the latest version. If you are using a build tool like maven, upgrade the API versions to latest. For example if you are using the Java Agent API with maven where `{agent.version}` is a placeholder for the upgraded agent version: +4. (Optional) If you are using the any of the agent APIs like our [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), it is recommended to upgrade your API dependencies as well to the latest version. Your newer version of the agent will still support the APIs but you may be missing new features plus upgrading is relatively easy. If you are using a build tool like maven, upgrade the API versions to latest. For example if you are using the Java Agent API with maven where `{agent.version}` is a placeholder for the upgraded agent version: ```xml com.newrelic.agent.java @@ -36,7 +36,6 @@ Then, to update to the latest Java agent version: {agent.version} ``` - If you are directly using the `newrelic-api.jar`, copy that same jar from the unzipped file from step 3 into your classpath. 5. Compare your old `newrelic.yml` with the newly downloaded `newrelic.yml` from the zip, and [update the file if needed](#diff). 6. Restart your Java dispatcher. From 5bfbc57fd0e449c4ec1c9234aca929c534c3a637 Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Fri, 29 Mar 2024 10:40:46 -0400 Subject: [PATCH 04/11] improve javaagent upgrade page --- .../java-agent/installation/update-java-agent.mdx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index 8ceae09491f..ece169fdc27 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -28,16 +28,12 @@ Then, to update to the latest Java agent version: 1. Back up the **entire** [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent) to another location. Rename that directory to `NewRelic_Agent#.#.#`, where `#.#.#` is the agent version number. 2. [Download the agent.](/docs/release-notes/agent-release-notes/java-release-notes) 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). -4. (Optional) If you are using the any of the agent APIs like our [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), it is recommended to upgrade your API dependencies as well to the latest version. Your newer version of the agent will still support the APIs but you may be missing new features plus upgrading is relatively easy. If you are using a build tool like maven, upgrade the API versions to latest. For example if you are using the Java Agent API with maven where `{agent.version}` is a placeholder for the upgraded agent version: - ```xml - - com.newrelic.agent.java - newrelic-api - {agent.version} - +4. (Optional) If you are using the any of the agent APIs like our [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), it is recommended to upgrade your API dependencies as well to the latest version. Your newer version of the agent will still support the APIs but you may be missing new features plus upgrading is relatively easy. If you are using a build tool like maven, upgrade the API versions to latest. For example if you are using the Java Agent API with gradle where `${agent.version}` is a placeholder for the upgraded agent version: + ```groovy + implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' ``` 5. Compare your old `newrelic.yml` with the newly downloaded `newrelic.yml` from the zip, and [update the file if needed](#diff). -6. Restart your Java dispatcher. +6. Restart your Java process. If you experience issues after the Java agent update, restore from the backed-up New Relic agent directory. From cf527416d5a0a41a00e39e6d841edde86d7eed8c Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Fri, 29 Mar 2024 10:50:16 -0400 Subject: [PATCH 05/11] Remove api jar in javaagent api page and use gradle example --- .../api-guides/guide-using-java-agent-api.mdx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx index 16ce7a8bfbd..d3b94768498 100644 --- a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx +++ b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx @@ -37,7 +37,15 @@ For all available New Relic APIs, see [Intro to APIs](/docs/apis/getting-started ## Use the API [#api] -To access the API class, add `newrelic-api.jar` to your application class path. The jar is in the New Relic Java agent's installation `zip` file. You can call the API when the Java agent is not running. The API methods are just stubs; the implementation is added when the Java agent loads the class. +To access the API, download it from maven central via a build tool. + +For example with gradle: + +```groovy +implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' +``` + +You can call the API when the Java agent is not running. The API methods are just stubs; the implementation is added when the Java agent loads the class. ## Transactions From bbe53d2b66637b70be4685daaef03dba3253bc8d Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Mon, 1 Apr 2024 16:08:53 -0400 Subject: [PATCH 06/11] Remove confusing instructions regarding yml changes --- .../installation/update-java-agent.mdx | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index ece169fdc27..cd8c991aeae 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -32,29 +32,6 @@ Then, to update to the latest Java agent version: ```groovy implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' ``` -5. Compare your old `newrelic.yml` with the newly downloaded `newrelic.yml` from the zip, and [update the file if needed](#diff). -6. Restart your Java process. +5. Restart your Java process. If you experience issues after the Java agent update, restore from the backed-up New Relic agent directory. - -## Update agent config differences [#diff] - -We add new settings to `newrelic.yml` as we release new versions of the agent. You can use `diff` or another diffing utility to see what's changed, and add the new config settings to your old file. Make sure not to overwrite any customizations you've made to the file, such as your license key, app name, or changes to default settings. - -For example, if you `diff` the default `newrelic.yml` files for Java agent versions 7.7.0 and 7.8.0, the results printed to the console will be: - -```diff -➜ diff newrelic_7.7.0.yml newrelic_7.8.0.yml -98c98 -< #forwarding: ---- -> forwarding: -100,101c100,101 -< # When true, application logs will be forwarded to New Relic. The default is false. -< #enabled: false ---- -> # When true, application logs will be forwarded to New Relic. The default is true. -> enabled: true -``` - -In this example, these lines were added to the default `newrelic.yml` in Java agent version 7.8.0. If you are moving to 7.8.0 or higher, you should add these new lines to your original `newrelic.yml`. From 055b0bb7644568608c16cb35b863a03b87687635 Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir <46640034+obenkenobi@users.noreply.github.com> Date: Mon, 1 Apr 2024 17:03:09 -0400 Subject: [PATCH 07/11] Apply suggestions from code review Co-authored-by: ally sassman <42753584+ally-sassman@users.noreply.github.com> --- .../java-agent/api-guides/guide-using-java-agent-api.mdx | 2 +- .../apm/agents/java-agent/installation/update-java-agent.mdx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx index d3b94768498..28547c5ecab 100644 --- a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx +++ b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx @@ -39,7 +39,7 @@ For all available New Relic APIs, see [Intro to APIs](/docs/apis/getting-started To access the API, download it from maven central via a build tool. -For example with gradle: +Here's an example for gradle: ```groovy implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index cd8c991aeae..f52e9282027 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -28,7 +28,8 @@ Then, to update to the latest Java agent version: 1. Back up the **entire** [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent) to another location. Rename that directory to `NewRelic_Agent#.#.#`, where `#.#.#` is the agent version number. 2. [Download the agent.](/docs/release-notes/agent-release-notes/java-release-notes) 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). -4. (Optional) If you are using the any of the agent APIs like our [Java Agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), it is recommended to upgrade your API dependencies as well to the latest version. Your newer version of the agent will still support the APIs but you may be missing new features plus upgrading is relatively easy. If you are using a build tool like maven, upgrade the API versions to latest. For example if you are using the Java Agent API with gradle where `${agent.version}` is a placeholder for the upgraded agent version: +4. (Optional) If you are using the any of the agent APIs like our [Java agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), we recommend you upgrade your API dependencies to the latest version. The newer agent version will still support the APIs, but you may be missing new features. If you're using a build tool like maven, upgrade the API versions to latest. For example, if you're using the Java Agent API with gradle, replace `${agent.version}` with the latest version: + ```groovy implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' ``` From 72b536922cd7b1e8b904563647a40657bac0a61b Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Mon, 1 Apr 2024 17:06:57 -0400 Subject: [PATCH 08/11] Respond to wording improvements --- .../agents/java-agent/api-guides/guide-using-java-agent-api.mdx | 2 +- .../apm/agents/java-agent/installation/update-java-agent.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx index 28547c5ecab..af38ba68bb3 100644 --- a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx +++ b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx @@ -45,7 +45,7 @@ Here's an example for gradle: implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' ``` -You can call the API when the Java agent is not running. The API methods are just stubs; the implementation is added when the Java agent loads the class. +You can call the API even without the agent running, but the methods will be a no-op until the agent loads your application. ## Transactions diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index f52e9282027..61884239f06 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -31,7 +31,7 @@ Then, to update to the latest Java agent version: 4. (Optional) If you are using the any of the agent APIs like our [Java agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), we recommend you upgrade your API dependencies to the latest version. The newer agent version will still support the APIs, but you may be missing new features. If you're using a build tool like maven, upgrade the API versions to latest. For example, if you're using the Java Agent API with gradle, replace `${agent.version}` with the latest version: ```groovy - implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' + implementation 'com.newrelic.agent.java:newrelic-api:${agent.version}' ``` 5. Restart your Java process. From d1c28ffdf6d4aba862c218b79a7bb5e0cc60fb40 Mon Sep 17 00:00:00 2001 From: Oren Ben-Meir Date: Mon, 1 Apr 2024 17:09:11 -0400 Subject: [PATCH 09/11] improve gradle example for java agent api --- .../java-agent/api-guides/guide-using-java-agent-api.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx index af38ba68bb3..69c2b6c027c 100644 --- a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx +++ b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx @@ -39,10 +39,10 @@ For all available New Relic APIs, see [Intro to APIs](/docs/apis/getting-started To access the API, download it from maven central via a build tool. -Here's an example for gradle: +Here's an example for gradle where you can replace`${agent.version}` with version of your agent: ```groovy -implementation 'com.newrelic.agent.java:newrelic-api:8.10.0' +implementation 'com.newrelic.agent.java:newrelic-api:${agent.version}' ``` You can call the API even without the agent running, but the methods will be a no-op until the agent loads your application. From bbf55cc5b32ffeee04d9daac802688c7370677bb Mon Sep 17 00:00:00 2001 From: ally sassman <42753584+ally-sassman@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:17:40 -0700 Subject: [PATCH 10/11] fix(docs): add spacing --- .../agents/java-agent/api-guides/guide-using-java-agent-api.mdx | 2 +- .../apm/agents/java-agent/installation/update-java-agent.mdx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx index 69c2b6c027c..9d13f83a1d3 100644 --- a/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx +++ b/src/content/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api.mdx @@ -39,7 +39,7 @@ For all available New Relic APIs, see [Intro to APIs](/docs/apis/getting-started To access the API, download it from maven central via a build tool. -Here's an example for gradle where you can replace`${agent.version}` with version of your agent: +Here's an example for gradle where you can replace `${agent.version}` with version of your agent: ```groovy implementation 'com.newrelic.agent.java:newrelic-api:${agent.version}' diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index 61884239f06..11982c4bb12 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -30,9 +30,11 @@ Then, to update to the latest Java agent version: 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). 4. (Optional) If you are using the any of the agent APIs like our [Java agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), we recommend you upgrade your API dependencies to the latest version. The newer agent version will still support the APIs, but you may be missing new features. If you're using a build tool like maven, upgrade the API versions to latest. For example, if you're using the Java Agent API with gradle, replace `${agent.version}` with the latest version: + ```groovy implementation 'com.newrelic.agent.java:newrelic-api:${agent.version}' ``` + 5. Restart your Java process. If you experience issues after the Java agent update, restore from the backed-up New Relic agent directory. From 7f38812674da9e07261853f303fb602839015e5e Mon Sep 17 00:00:00 2001 From: ally sassman <42753584+ally-sassman@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:18:40 -0700 Subject: [PATCH 11/11] fix(docs): remove extra space --- .../apm/agents/java-agent/installation/update-java-agent.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx index 11982c4bb12..c23ec8316d2 100644 --- a/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx +++ b/src/content/docs/apm/agents/java-agent/installation/update-java-agent.mdx @@ -28,7 +28,7 @@ Then, to update to the latest Java agent version: 1. Back up the **entire** [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent) to another location. Rename that directory to `NewRelic_Agent#.#.#`, where `#.#.#` is the agent version number. 2. [Download the agent.](/docs/release-notes/agent-release-notes/java-release-notes) 3. Unzip the new agent download file, then copy `newrelic-api.jar` and `newrelic.jar` into the original [Java agent root directory](/docs/agents/manage-apm-agents/troubleshooting/find-agent-root-directory#java-agent). -4. (Optional) If you are using the any of the agent APIs like our [Java agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), we recommend you upgrade your API dependencies to the latest version. The newer agent version will still support the APIs, but you may be missing new features. If you're using a build tool like maven, upgrade the API versions to latest. For example, if you're using the Java Agent API with gradle, replace `${agent.version}` with the latest version: +4. (Optional) If you are using the any of the agent APIs like our [Java agent API](/docs/apm/agents/java-agent/api-guides/guide-using-java-agent-api/) or a [Scala API](/docs/apm/agents/java-agent/frameworks/scala-installation-java/#using-the-scala-api), we recommend you upgrade your API dependencies to the latest version. The newer agent version will still support the APIs, but you may be missing new features. If you're using a build tool like maven, upgrade the API versions to latest. For example, if you're using the Java Agent API with gradle, replace `${agent.version}` with the latest version: ```groovy