private static void AddProperties(IDictionary <string, string> properties)
 {
     if (properties != null)
     {
         var agent       = NRClient.GetAgent();
         var transaction = agent.CurrentTransaction;
         foreach (var property in properties)
         {
             transaction.AddCustomAttribute(property.Key, property.Value);
         }
     }
 }
 private static void AddMetric(IDictionary <string, double> metrics)
 {
     if (metrics != null)
     {
         var agent       = NRClient.GetAgent();
         var transaction = agent.CurrentTransaction;
         foreach (var metric in metrics)
         {
             transaction.AddCustomAttribute(metric.Key, metric.Value);
         }
     }
 }