コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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);
         }
     }
 }