• English日本語한국어
  • Log inStart now

Java XML instrumentation examples

For your New Relic-monitored Java application, one custom instrumentation method is to use an XML file that lists the methods and classes you want to instrument. This documentation shows an example XML instrumentation file. For more information, see Java instrumentation by XML.

Edit XML file in UI

To edit your XML file directly from the New Relic UI: Go to one.newrelic.com > All capabilities > APM & services > (select an app) > Settings > Instrumentation. From here you can:

  • Download a sample XML file.
  • Select an edit existing XML file.
  • Search the instrumentation history.

XML file format

The XML file format includes root and child nodes.

Caution

Do not instrument all of your methods, as this can lead to a metric grouping issue.

Example

Here is a sample class and an XML file that could be used to instrument that class.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.