private void EndRequest(object sender, EventArgs e)
 {
     try
     {
         if (_samplingManager != null)
         {
             APM.Enable();
         }
     }
     catch (Exception ex)
     {
         RaygunLogger.Instance.Error($"Error during end request of APM sampling: {ex.Message}");
     }
 }
 private void EndRequest(object sender, EventArgs e)
 {
     try
     {
         if (_samplingManager != null)
         {
             APM.Enable();
         }
     }
     catch (Exception ex)
     {
         System.Diagnostics.Trace.WriteLine($"Error during end request of APM sampling: {ex.Message}");
     }
 }