I still new to extended events, but thought I need to get into it, seeing as it is a lot more detailed. I am trying to setup a extended event, on the rpc_completed event, tracking proc calls that have a duration of 5 seconds or longer. I setup the event using the New Session (have scripted it out below) and to test it I have a SSMS connection open where I created a test proc which has a built in WAIT FOR DELAY of 10 seconds. So I expected that this appear in the watch live data but when I exec the test proc - it does not appear in the watch live data view, I have even removed the filtered on duration, and still no results in the "watch live data view" Any ideas what could be wrong I am on SQL 2014, local machine instance, here is the scripted out extended event.
CREATE EVENT SESSION [PRC_Completed_Test]
ON SERVER ADD EVENT sqlserver.rpc_completed (SET collect_statement = (1)
ACTION(
sqlserver.client_app_name
, sqlserver.client_hostname
, sqlserver.database_name
, sqlserver.sql_text)
)
WITH (
MAX_MEMORY = 4096 KB
,EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS
,MAX_DISPATCH_LATENCY = 30 SECONDS
,MAX_EVENT_SIZE = 0 KB
,MEMORY_PARTITION_MODE = NONE
,TRACK_CAUSALITY = OFF
,STARTUP_STATE = OFF
)
GO
Any pointers would be great
Thank you.