bin/XEtemplates/Function Executions.xml

<event_sessions xmlns="http://schemas.microsoft.com/sqlserver/2008/07/extendedeventconfig">
   <event_session name="Function Executions" maxMemory="4" eventRetentionMode="allowSingleEventLoss" trackCausality="false" dispatchLatency="30" maxEventSize="0" memoryPartitionMode="none">
    <templateCategory>
      <!-- _locID_text="templateCategory" _locComment = "" -->Everyday Extended Events</templateCategory>
    <templateName>
      <!-- _locID_text = "templateName" _locComment = "" -->Function Executions</templateName>
    <templateDescription>
      <!-- _locID_text = "templateDescription" _locComment = "" -->Captures function executions</templateDescription>
      <event package="sqlserver" name="sp_statement_completed">
         <action package="sqlserver" name="sql_text" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <event package="sqlserver" name="sql_statement_completed">
         <action package="sqlserver" name="sql_text" />
         <action package="sqlserver" name="tsql_stack" />
      </event>
      <target package="package0" name="ring_buffer" />
   </event_session>
</event_sessions>