Updated on 2022-02-21 GMT+08:00

Method Tracing

Method tracing is used to dynamically trace a method of a class. When the method of this class is called, Application Performance Management (APM) collects the call data of the method based on configured method tracing rules using probes, and displays the call data on the Call Chain page. Method tracing is used to help application developers locate method-level performance problems online.

APM traces the APIs of most third-party open-source components, but does not trace specific methods in your applications. To monitor important methods in applications or methods of some third-party open-source components that are not supported by APM, you need to customize method tracing. After the configuration is complete, you can view the call data of the method on the Call Chain page.

  1. Customize a method tracing rule and start method tracing.

    On the Method Tracing page, click Add Method Tracing Rule, set the parameters as shown in the following figure, and click OK.

    • If Method Parameter is not set, the methods of the same method name are used for collection by default.
    • If Value is not set, the values of the method are not filtered during collection.
    • If Collect Method Stack Info is enabled, the method stack information is collected.

  2. Preliminarily locate service performance problems based on the call duration and status.
  3. Click View Call Relationship in the Operation column to view the method-level call relationships.