Kendra Little builds a filter:
The
rpc_completedevent in Extended Events is useful when troubleshooting SQL Server performance. It captures detailed information about Remote Procedure Calls: that means stored procedure executions, including the calls tosp_executesqloften used by applications (including Entity Framework) to run parameterized queries against SQL Server. The output forrpc_completedincludes the parameters that were specified along with values provided, and the CPU time, logical reads, and duration used by the query.It can be frustrating to figure out how to filter this in Extended Events. Struggling with this is one of the primary reasons I sometimes use ye Olde Profiler for initial investigations and to speedily observe something in SQL Server.
Here is my survival guide to filtering
rpc_completed, which makes using XEvents suck less.
Kendra digs in deep, including several common gotchas and solid recommendations, including the use of Erik Darling’s sp_humanevents.