To monitor methods or interfaces that are not detected by the Application Real-Time Monitoring Service (ARMS) agent, you can add custom methods for monitoring in ARMS Application Monitoring.
Prerequisites
An application monitoring job is created. For more information, see Create an application monitoring job.
Procedure
Log on to the ARMS console. In the left-side navigation pane, choose .
On the Applications page, select a region in the top navigation bar and click the name of the application that you want to manage.
NoteIf the
icon is displayed in the Language column, the application is connected to Application Monitoring. If a hyphen (-) is displayed, the application is connected to Managed Service for OpenTelemetry. In the left-side navigation pane, click Application Settings. On the page that appears, click the Monitoring Method Customization tab.
Add a custom method for monitoring
On the Monitoring Method Customization tab, click Add Method.
In the Add Custom Method dialog box, set the following parameters and click OK.

Parameter
Description
Method
The name of the method to be monitored. It must be unique.
Enable
After you enable this feature, you can monitor this method, and the method is displayed in the local method stack. For more information, see Trace query. By default, this switch is enabled.
NoteThis feature can be enabled or disabled without the need to restart the application.
Call Entrance
After this feature is enabled, you can query business by traces. Then, corresponding interfaces are displayed on the Interface Invocation page. For more information, see Interface call monitoring. By default, this switch is disabled.
NoteIf multiple custom methods in the stack are configured as entrance methods, only the monitoring data of the last method is collected. Assume that Function A calls Function B. If Function A and Function B are both configured as entrance methods, only the monitoring data of Function B is collected.
After a custom method is added for monitoring, it is automatically displayed in the method list.