Monitor arguments and return value of methods

Community post

Shared by the Applicare community. It has not been re-checked against Applicare 10.0, so confirm the steps in your environment or contact Support.

To monitor/capture arguments and return value of any method in applicare simply add the method as key business transaction and enable transaction tracing. In the trace, the return value of the method will be shown in the param _ap_txn_ret_val.

Sample:

[Screenshot 1 is not available on this page.]

To monitor arguments and return value of getInterger method we should add it as key business transactions.

[Screenshot 2 is not available on this page.]

[Screenshot 3 is not available on this page.]

[Screenshot 4 is not available on this page.]

In the above case, _ap_txn_ret_val shows the return value and javal.lang.Integer & java.lang.String shows the value of the arguments passed to the method getInterger()

Join the discussion

Comments, voting and following are kept by Zendesk and need a Help Center account. This button opens the original discussion there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support