Help Center > > User Guide> Tracing> Method Tracing

Method Tracing

Updated at: Mar 17, 2020 GMT+08:00

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 APIs released by third-party open-source components, but does not trace specific methods in applications. To monitor important methods in applications or methods of 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 parameters, and click OK.

    • If Method Parameter is not set, all information about the methods using the same name is collected by default.
    • If Value is not set, the values of methods are not filtered during collection.
    • If Collect Method Stack Info is enabled, the call stack information about methods is collected.
    • If Collect All Matched Call Info is enabled, all tracing method information is collected. If this function is disabled, tracing method information is collected based on the sampling ratio set during Collection Configuration.

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

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel