Exemple #1
0
 public StatsPublisherShould(ITestOutputHelper testOutputHelper)
 {
     _udpListener    = new UdpListener(testOutputHelper);
     _statsPublisher = new StatsPublisher(Options.Create(new StatsConfiguration
     {
         Prefix = "test-prefix",
         Host   = "localhost",
         Port   = _udpListener.Port,
         EnsureLowercasedMetricNames  = true,
         SupportSplunkExtendedMetrics = true
     }));
 }
 public HttpMetricsMiddlewareShould(ITestOutputHelper testOutputHelper)
 {
     _udpListener   = new UdpListener(testOutputHelper, 2);
     _testApiServer = new TestApiServer(_udpListener.Port);
 }