Update `ConsoleExporterTests` To Use Updated `RatePayload` (#4454)
authorkkeirstead <85592574+kkeirstead@users.noreply.github.com>
Mon, 8 Jan 2024 20:20:27 +0000 (12:20 -0800)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 20:20:27 +0000 (12:20 -0800)
It looks like #4324 hadn't run a build in a while, and was checked in
without validating against the new tests in
https://github.com/dotnet/diagnostics/pull/4376 (causing the builds in
main to fail). I don't believe there are any other issues, but this
should give us a fresh build to confirm that.

src/tests/dotnet-counters/ConsoleExporterTests.cs

index d2f1bf3d5d0f6cf22a472680dc2dd7ec10da9849..4fae980706efd6402263502d0b84af8ac8b61ef3 100644 (file)
@@ -314,7 +314,7 @@ namespace DotnetCounters.UnitTests
 
         private static CounterPayload CreateMeterCounter(string meterName, string instrumentName, string unit, string tags, double value)
         {
-            return new RatePayload(meterName, instrumentName, instrumentName, unit, tags, value, 1, DateTime.MinValue);
+            return new RatePayload(new CounterMetadata(meterName, instrumentName, null, null, null), instrumentName, unit, tags, value, 1, DateTime.MinValue);
         }
     }
 }