Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Adding note for potential performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Larson committed Jan 31, 2014
1 parent 738587a commit 95b5093
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NewRelic.Microsoft.SqlServer.Plugin/MetricCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ internal void QueryEndpoints(IEnumerable<SqlQuery> queries)

// Wait for all of them to complete
Task.WaitAll(tasks.ToArray<Task>());

// This sends all components to the server in a single request, we may run into performance issues with one component delaying the others.
SendComponentDataToCollector();

_log.InfoFormat("Recorded {0} metrics", tasks.Sum(t => t.Result));
Expand Down

0 comments on commit 95b5093

Please sign in to comment.