File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ internal static partial class Metric
7171 public static partial TotalCount CreateTotalCount (Meter meter );
7272
7373 [Counter <int >]
74- public static partial TotalFailures CreateTotalFailures (Meter meter );
74+ public static partial TotalFailures CreateTotalFailures (this Meter meter );
7575}
7676```
7777
@@ -116,7 +116,8 @@ internal class MyClass
116116 // Create metric instances using the source-generated factory methods
117117 _latencyMetric = Metric .CreateLatency (meter );
118118 _totalCountMetric = Metric .CreateTotalCount (meter );
119- _totalFailuresMetric = Metric .CreateTotalFailures (meter );
119+ // This syntax is available since `CreateTotalFailures` is defined as an extension method
120+ _totalFailuresMetric = meter .CreateTotalFailures ();
120121 }
121122
122123 public void ReportSampleRequestCount ()
You can’t perform that action at this time.
0 commit comments