bin/XEtemplates/Query Timeouts.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<event_sessions xmlns="http://schemas.microsoft.com/sqlserver/2008/07/extendedeventconfig">
   <event_session name="Query Timeouts" maxMemory="4" eventRetentionMode="allowSingleEventLoss" trackCausality="true" dispatchLatency="5" maxEventSize="0" memoryPartitionMode="none">
    <templateCategory>
      <!-- _locID_text="templateCategory" _locComment = "" -->Query Execution</templateCategory>
    <templateName>
      <!-- _locID_text = "templateName" _locComment = "" -->Query Timeouts</templateName>
    <templateDescription>
      <!-- _locID_text = "templateDescription" _locComment = "" -->Tracks query timeouts.</templateDescription>
      <event package="sqlserver" name="sql_statement_completed">
         <action package="sqlserver" name="query_hash" />
         <action package="sqlserver" name="session_id" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <event package="sqlserver" name="sql_statement_starting">
         <action package="sqlserver" name="query_hash" />
         <action package="sqlserver" name="session_id" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <target package="package0" name="pair_matching">
         <parameter name="begin_event" value="sqlserver.sql_statement_starting" />
         <parameter name="begin_matching_actions" value="sqlserver.session_id, sqlserver.tsql_stack" />
         <parameter name="end_event" value="sqlserver.sql_statement_completed" />
         <parameter name="end_matching_actions" value="sqlserver.session_id, sqlserver.tsql_stack" />
         <parameter name="respond_to_memory_pressure" value="0" />
      </target>
   </event_session>
</event_sessions>