15 references to TagNameAttribute
Microsoft.Extensions.Http.Diagnostics (11)
Logging\Internal\Log.cs (11)
52
[
TagName
(HttpClientLoggingTagNames.Method)] HttpMethod method,
53
[
TagName
(HttpClientLoggingTagNames.Host)] string? host,
54
[
TagName
(HttpClientLoggingTagNames.Path)] string? path);
60
[
TagName
(HttpClientLoggingTagNames.Method)] HttpMethod method,
61
[
TagName
(HttpClientLoggingTagNames.Host)] string host,
62
[
TagName
(HttpClientLoggingTagNames.Path)] string path);
69
[
TagName
(HttpClientLoggingTagNames.Method)] HttpMethod method,
70
[
TagName
(HttpClientLoggingTagNames.Host)] string? host);
77
[
TagName
(HttpClientLoggingTagNames.Method)] HttpMethod method,
78
[
TagName
(HttpClientLoggingTagNames.Host)] string host,
79
[
TagName
(HttpClientLoggingTagNames.Path)] string path);
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\TagNameAttributeTests.cs (2)
14
var a = new
TagNameAttribute
("a");
17
Assert.Throws<ArgumentNullException>(() => new
TagNameAttribute
(null!));
Microsoft.Gen.Logging.Generated.Tests (2)
test\Generators\Microsoft.Gen.Logging\TestClasses\TagNameExtensions.cs (2)
11
internal static partial void M0(ILogger logger, [
TagName
("TN1")] int p0);
14
internal static partial void M1(ILogger logger, [
TagName
("foo.bar")] int p0);