All Products
Search
Document Center

Application Real-Time Monitoring Service:Add custom methods for monitoring

Last Updated:Mar 11, 2026

The Application Real-Time Monitoring Service (ARMS) agent automatically instruments common frameworks and libraries. For methods outside automatic detection -- such as custom business logic, internal utility functions, or proprietary middleware -- you can manually add them through the ARMS console. Once added, these methods appear in trace data and the local method stack, giving you visibility into previously unmonitored code paths.

Prerequisites

Before you begin, ensure that you have:

Add a custom method

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Application Monitoring > Applications.

  3. On the Applications page, select a region in the top navigation bar, and then click the name of the target application.

    If the Java图标 icon appears in the Language column, the application is connected to Application Monitoring. If a hyphen (-) appears, the application is connected to Managed Service for OpenTelemetry.
  4. In the left-side navigation pane, click Application Settings.

  5. Click the Monitoring Method Customization tab.

  6. Click Add Method.

  7. In the Add Custom Method dialog box, configure the parameters described in the following table, and then click OK.

    Add Custom Method dialog box

    ParameterDescription
    MethodThe name of the method to monitor. Must be unique across all custom methods.
    EnableControls whether this method is actively monitored. When enabled, the method appears in the local method stack within trace query results. Enabled by default. For more information, see Trace query.
    Call EntranceMarks this method as a trace entry point. When enabled, the method appears on the Interface Invocation page and supports trace-based queries. Disabled by default. For more information, see Interface call monitoring.
    You can enable or disable monitoring for a method without restarting the application.
    Important

    If multiple custom methods in the same call stack are configured as call entrances, ARMS only collects monitoring data for the last method. For example, if Function A calls Function B and both are configured as call entrances, only Function B's monitoring data is collected.

    After the method is added, it automatically appears in the method list on the Monitoring Method Customization tab.

What to do next

  • Trace query: Search and inspect traces that include your custom methods.

  • Interfaces: View call statistics for methods configured as call entrances.