5 writes to Name
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Metrics\MetricAttributeTests.cs (2)
81
attribute.
Name
= MyMetric;
199
attribute.
Name
= MyMetric;
Microsoft.Gen.Metrics.Generated.Tests (3)
test\Generators\Microsoft.Gen.Metrics\TestClasses\MetricsWithDescription.cs (1)
35
[Histogram<int>("s1", Description = "Contains \"quotes\", a backslash \\, {braces}\tand a\nnew line.",
Name
= "GenericIntHistogramWithEscapedDescription")]
test\Generators\Microsoft.Gen.Metrics\TestClasses\MetricsWithPrimitiveTags.cs (1)
15
[Histogram<double>(typeof(PrimitiveTagsStruct),
Name
= "HistogramWithPrimitiveTags")]
test\Generators\Microsoft.Gen.Metrics\TestClasses\MetricsWithUnit.cs (1)
36
[Histogram<int>(Unit = "microseconds",
Name
= "GenericIntHistogramWithUnit")]
4 references to Name
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Metrics\MetricAttributeTests.cs (4)
75
Assert.Null(attribute.
Name
);
82
Assert.Equal(MyMetric, attribute.
Name
);
193
Assert.Null(attribute.
Name
);
200
Assert.Equal(MyMetric, attribute.
Name
);