title: Application Insight - Unable to get teletry from different environments
body: <p>We are experimenting <strong>Azure Application Insight</strong> within a SharePoint 2013 solution. We managed to configure it manually, and we are collecting data from the <em>development</em> farm.</p>
  
  <p>However, the same configuration looks like not to be working in the test farm, <strong>as only a few requests are tracked</strong>. </p>
  
  <p>We tried two ways of diagnosing the issue:</p>
  
  <ol>
  <li><p>With a <em>custom command-line tool</em> that traces an exception, on the test front-end. No errors are shown, and enabling diagnostic tracing on <em>System.Net</em> shows no problem actually occurs in transmission. Eventually, the exception is logged on AppInsight, but not every time.</p></li>
  <li><p>Implementing a <em>custom WebApi controller</em> that performs the same action, but within of our solution code. This never gets collected.</p></li>
  </ol>
  
  <p>In the end, what looks very weird is only certain URL are tracked server-side (no problems with client JS), <strong>which interestingly are the slowest requests</strong>.</p>
  
  <p>I've decompiled all Application Insight assemblies, and of course telemetry transmission in done asynchronusly, but within w3wp.exe there's no chance that the process is aborted and the transmission never occurs...</p>
  
  <p>What else can I try?</p>