22 instantiations of CounterAttribute
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Metrics\MetricAttributeTests.cs (2)
41var attribute = new CounterAttribute<int>("d1", "d2", "d3"); 108var attribute = new CounterAttribute<byte>(typeof(TagNameTest));
Microsoft.Gen.Metrics.Generated.Tests (20)
test\Generators\Microsoft.Gen.Metrics\TestClasses\CounterTestExtensions.cs (11)
11[Counter<int>] 14[Counter<int>] 26[Counter<int>("s1")] 29[Counter<int>("s1")] 32[Counter<float>("s1")] 35[Counter<float>("s1")] 104[Counter<decimal>(typeof(CounterDimensions), Name = "MyCounterStrongTypeMetric")] 107[Counter<decimal>(typeof(CounterDimensions), Name = "MyCounterStrongTypeMetricExt")] 110[Counter<long>(typeof(CounterStructDimensions), Name = "MyCounterStructTypeMetric")] 113[Counter<long>(typeof(CounterStructDimensions), Name = "MyCounterStructTypeMetric")] 116[Counter<long>(typeof(CounterRecordClassDimensions), Name = "MyCounterRecordClassTypeMetric")]
test\Generators\Microsoft.Gen.Metrics\TestClasses\FileScopedNamespaceExtensions.cs (1)
14[Counter<double>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\MetricRecordClassTestExtensions.cs (1)
11[Counter<int>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\MetricRecordStructTestExtensions.cs (1)
11[Counter<int>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\MetricStructTestExtensions.cs (1)
11[Counter<int>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\NestedClassMetrics.cs (2)
16[Counter<int>] 27[Counter<int>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\NestedRecordClassMetrics.cs (1)
16[Counter<int>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\NestedRecordStructMetrics.cs (1)
16[Counter<int>]
test\Generators\Microsoft.Gen.Metrics\TestClasses\NestedStructMetrics.cs (1)
16[Counter<int>]
5 references to CounterAttribute
Microsoft.Extensions.Telemetry.Abstractions (2)
Metrics\CounterAttributeT.cs (2)
43/// Initializes a new instance of the <see cref="CounterAttribute{T}"/> class. 52/// Initializes a new instance of the <see cref="CounterAttribute{T}"/> class.
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Metrics\MetricAttributeTests.cs (2)
41var attribute = new CounterAttribute<int>("d1", "d2", "d3"); 108var attribute = new CounterAttribute<byte>(typeof(TagNameTest));
Microsoft.Gen.Metrics.Unit.Tests (1)
EmitterTests.cs (1)
36Assembly.GetAssembly(typeof(CounterAttribute<>))!,