8 writes to Name
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Metrics\MetricAttributeTests.cs (2)
34
attribute.
Name
= MyMetric;
101
attribute.
Name
= MyMetric;
Microsoft.Gen.Metrics.Generated.Tests (6)
test\Generators\Microsoft.Gen.Metrics\TestClasses\HistogramTestExtensions.cs (6)
86
[Histogram(MetricConstants.D1, MetricConstants.D2, MetricConstants.D3,
Name
= "MyHistogramMetric")]
89
[Histogram(MetricConstants.D1, MetricConstants.D2, MetricConstants.D3,
Name
= "MyHistogramMetric")]
92
[Histogram(typeof(HistogramDimensionsTest),
Name
= "MyHistogramStrongTypeMetric")]
95
[Histogram(typeof(HistogramDimensionsTest),
Name
= "MyHistogramStrongTypeMetricExt")]
98
[Histogram(typeof(HistogramStruct),
Name
= "MyHistogramStructTypeMetric")]
101
[Histogram(typeof(HistogramStruct),
Name
= "MyHistogramStructTypeMetric")]
4 references to Name
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Metrics\MetricAttributeTests.cs (4)
30
Assert.Null(attribute.
Name
);
35
Assert.Equal(MyMetric, attribute.
Name
);
97
Assert.Null(attribute.
Name
);
102
Assert.Equal(MyMetric, attribute.
Name
);