Task-Based POCO Entry Point Methods
Splunk AppDynamics automatically tracks POCO transactions for asynchronous, Task-based method entry points as end-to-end transactions. End-to-end latency metrics reflect the time it takes to complete the asynchronous actions associated with such methods.
To be tracked as an end-to-end transaction, the method you define as the POCO entry point must return a Task async
public async Task<int> SearchBestPrice()
{
...
}
Splunk AppDynamics records the response times for such methods as it does for other types of methods—the response time reflects the time from when the method is called to when it returns control to the calling thread. However, for asynchronous task-based methods, Splunk AppDynamics records the time it takes for the asynchronous task to be fulfilled as an end-to-end transaction latency metric.