• /
  • Log in

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 > APM > (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.

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.