1 write to _meter
Microsoft.Gen.Metrics.Generated.Tests (1)
MetricTests.cs (1)
25_meter = new Meter(_meterName);
75 references to _meter
Microsoft.Gen.Metrics.Generated.Tests (75)
MetricTests.cs (51)
34_meter.Dispose(); 50using var collector = new MetricCollector<long>(_meter, nameof(Counter0D)); 51Counter0D counter0D = CounterTestExtensions.CreateCounter0D(_meter); 65using var collector = new MetricCollector<long>(_meter, nameof(Counter2D)); 66Counter2D counter2D = CounterTestExtensions.CreateCounter2D(_meter); 77using var collector = new MetricCollector<long>(_meter, nameof(Histogram0D)); 78Histogram0D histogram0D = HistogramTestExtensions.CreateHistogram0D(_meter); 92using var collector = new MetricCollector<long>(_meter, nameof(Histogram1D)); 93Histogram1D histogram1D = HistogramTestExtensions.CreateHistogram1D(_meter); 105using var collector = new MetricCollector<int>(_meter, nameof(GenericIntCounter0D)); 106GenericIntCounter0D counter0D = CounterTestExtensions.CreateGenericIntCounter0D(_meter); 120using var collector = new MetricCollector<int>(_meter, nameof(GenericIntCounter1D)); 121GenericIntCounter1D counter2D = CounterTestExtensions.CreateGenericIntCounter1D(_meter); 133using var collector = new MetricCollector<int>(_meter, nameof(GenericIntHistogram0D)); 134GenericIntHistogram0D histogram0D = HistogramTestExtensions.CreateGenericIntHistogram0D(_meter); 148using var collector = new MetricCollector<int>(_meter, nameof(GenericIntHistogram2D)); 149GenericIntHistogram2D histogram1D = HistogramTestExtensions.CreateGenericIntHistogram2D(_meter); 162using var collector = new MetricCollector<long>(_meter, nameof(Counter4D)); 163Counter4D counter4D = CounterTestExtensions.CreateCounter4D(_meter); 164Counter4D newCounter4D = CounterTestExtensions.CreateCounter4D(_meter); 186using var collector = new MetricCollector<long>(_meter, nameof(Histogram4D)); 187Histogram4D histogram4D = HistogramTestExtensions.CreateHistogram4D(_meter); 188Histogram4D newHistogram4D = HistogramTestExtensions.CreateHistogram4D(_meter); 209Counter3D counter = CounterTestExtensions.CreateCounter3D(_meter); 216Histogram3D histogram = HistogramTestExtensions.CreateHistogram3D(_meter); 228Counter3D counter = CounterTestExtensions.CreateCounter3D(_meter); 235Histogram3D histogram3D = HistogramTestExtensions.CreateHistogram3D(_meter); 246using var collector = new MetricCollector<long>(_meter, nameof(Counter2D)); 247Counter2D counter2D = CounterTestExtensions.CreateCounter2D(_meter); 272using var collector = new MetricCollector<long>(_meter, nameof(Histogram2D)); 273Histogram2D histogram = HistogramTestExtensions.CreateHistogram2D(_meter); 297using var collector = new MetricCollector<long>(_meter, nameof(FileScopedNamespaceCounter)); 298FileScopedNamespaceCounter longCounter = FileScopedExtensions.CreateCounter(_meter); 309using var collector = new MetricCollector<double>(_meter, nameof(FileScopedNamespaceGenericDoubleCounter)); 311var genericDoubleCounter = FileScopedExtensions.CreateGenericDoubleCounter(_meter); 322using var collector = new MetricCollector<long>(_meter, "MyCounterMetric"); 323CounterWithVariableParams counter = CounterTestExtensions.CreateCounterWithVariableParams(_meter); 335using var collector = new MetricCollector<long>(_meter, "MyHistogramMetric"); 336HistogramWithVariableParams histogram = HistogramTestExtensions.CreateHistogramWithVariableParams(_meter); 357using var collector = new MetricCollector<long>(_meter, "MyHistogramStructTypeMetric"); 358StructTypeHistogram recorder = HistogramTestExtensions.CreateHistogramStructType(_meter); 401using var collector = new MetricCollector<long>(_meter, "MyHistogramStrongTypeMetric"); 402StrongTypeHistogram recorder = HistogramTestExtensions.CreateHistogramStrongType(_meter); 473using (var collector = new MetricCollector<long>(_meter, "MyHistogramStrongTypeMetric")) 475StrongTypeHistogram recorder = HistogramTestExtensions.CreateHistogramStrongType(_meter); 480using (var collector = new MetricCollector<decimal>(_meter, "MyCounterStrongTypeMetric")) 482StrongTypeDecimalCounter counter = CounterTestExtensions.CreateStrongTypeDecimalCounter(_meter); 500using var collector = new MetricCollector<long>(_meter, "MyCounterStructTypeMetric"); 501StructTypeCounter recorder = CounterTestExtensions.CreateCounterStructType(_meter); 544using var collector = new MetricCollector<decimal>(_meter, "MyCounterStrongTypeMetric"); 545StrongTypeDecimalCounter counter = CounterTestExtensions.CreateStrongTypeDecimalCounter(_meter);
MetricTests.Ext.cs (24)
18using (var collector = new MetricCollector<long>(_meter, "MyHistogramStrongTypeMetricExt")) 20StrongTypeHistogramExt recorder = _meter.CreateHistogramExtStrongType(); 25using (var collector = new MetricCollector<decimal>(_meter, "MyCounterStrongTypeMetricExt")) 27StrongTypeDecimalCounterExt counter = _meter.CreateStrongTypeDecimalCounterExt(); 36using var collector = new MetricCollector<long>(_meter, nameof(CounterExt0D)); 37CounterExt0D counter0D = _meter.CreateCounterExt0D(); 49using var collector = new MetricCollector<long>(_meter, nameof(CounterExt2D)); 50CounterExt2D counter2D = _meter.CreateCounterExt2D(); 61using var collector = new MetricCollector<long>(_meter, nameof(HistogramExt0D)); 62HistogramExt0D histogram0D = _meter.CreateHistogramExt0D(); 74using var collector = new MetricCollector<long>(_meter, nameof(HistogramExt1D)); 76HistogramExt1D histogram1D = _meter.CreateHistogramExt1D(); 88using var collector = new MetricCollector<int>(_meter, nameof(GenericIntCounterExt0D)); 89GenericIntCounterExt0D counter0D = _meter.CreateGenericIntCounterExt0D(); 101using var collector = new MetricCollector<int>(_meter, nameof(GenericIntCounterExt1D)); 103GenericIntCounterExt1D counter2D = _meter.CreateGenericIntCounterExt1D(); 115using var collector = new MetricCollector<int>(_meter, nameof(GenericIntHistogramExt0D)); 116GenericIntHistogramExt0D histogram0D = _meter.CreateGenericIntHistogramExt0D(); 128using var collector = new MetricCollector<int>(_meter, nameof(GenericIntHistogramExt2D)); 130GenericIntHistogramExt2D histogram1D = _meter.CreateGenericIntHistogramExt2D(); 164using var collector = new MetricCollector<long>(_meter, "MyHistogramStrongTypeMetricExt"); 165StrongTypeHistogramExt recorder = _meter.CreateHistogramExtStrongType(); 257using var collector = new MetricCollector<decimal>(_meter, "MyCounterStrongTypeMetricExt"); 258StrongTypeDecimalCounterExt counter = _meter.CreateStrongTypeDecimalCounterExt();