title: ApplicationInsights: How to query full trace of azure function executions containing errors?
body: <p>I want to use Application Insights to analyse the logging output of my Azure Functions.  If the logging output of a function execution contains at least one error, I want to see the whole logging output of that execution.</p>
  
  <p>Starting point:</p>
  
  <pre><code>traces 
  | where severityLevel == 3
  | where operation_Name == "MyFunctionName" 
  | project timestamp, operation_Name, message
  </code></pre>
  
  <p>But this only provides the errors themselves but not the other output of the function executions.</p>