16 references to ErrorTypeAttributeName
InMemory.FunctionalTests (6)
ConnectionLimitTests.cs (1)
158m.Tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var value);
ConnectionMiddlewareTests.cs (1)
175Assert.Equal(typeof(InvalidOperationException).FullName, m.Tags[KestrelMetrics.ErrorTypeAttributeName]);
Http2\Http2StreamTests.cs (1)
3781Assert.False(ConnectionTags.ContainsKey(KestrelMetrics.ErrorTypeAttributeName), "Non-error reason shouldn't be added to error.type");
src\Servers\Kestrel\shared\test\MetricsAssert.cs (3)
19Equal(expectedReason, (string) tags[KestrelMetrics.ErrorTypeAttributeName]); 24if (tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var error)) 26Assert.Fail($"Tag collection contains {KestrelMetrics.ErrorTypeAttributeName} with value {error}.");
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\KestrelMetrics.cs (4)
135tags.TryAddTag(ErrorTypeAttributeName, errorValue); 139tags.TryAddTag(ErrorTypeAttributeName, exception.GetType().FullName); 315tags.TryAddTag(ErrorTypeAttributeName, exception.GetType().FullName); 428feature.TryAddTag(ErrorTypeAttributeName, errorTypeValue);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\test\MetricsAssert.cs (3)
19Equal(expectedReason, (string) tags[KestrelMetrics.ErrorTypeAttributeName]); 24if (tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var error)) 26Assert.Fail($"Tag collection contains {KestrelMetrics.ErrorTypeAttributeName} with value {error}.");
Sockets.FunctionalTests (3)
src\Servers\Kestrel\shared\test\MetricsAssert.cs (3)
19Equal(expectedReason, (string) tags[KestrelMetrics.ErrorTypeAttributeName]); 24if (tags.TryGetValue(KestrelMetrics.ErrorTypeAttributeName, out var error)) 26Assert.Fail($"Tag collection contains {KestrelMetrics.ErrorTypeAttributeName} with value {error}.");