70 references to TagArray
Microsoft.Extensions.Http.Diagnostics (10)
Logging\Internal\Log.cs (7)
101
loggerMessageState.
TagArray
[index++] = new(HttpClientLoggingTagNames.Method, record.Method);
102
loggerMessageState.
TagArray
[index++] = new(HttpClientLoggingTagNames.Host, record.Host);
103
loggerMessageState.
TagArray
[index++] = new(HttpClientLoggingTagNames.Path, record.Path);
104
loggerMessageState.
TagArray
[index++] = new(HttpClientLoggingTagNames.Duration, record.Duration);
108
loggerMessageState.
TagArray
[index++] = new(HttpClientLoggingTagNames.StatusCode, record.StatusCode.Value);
128
loggerMessageState.
TagArray
[index++] = new(HttpClientLoggingTagNames.RequestBody, record.RequestBody);
133
loggerMessageState.
TagArray
[index] = new(HttpClientLoggingTagNames.ResponseBody, record.ResponseBody);
Logging\Internal\LoggerMessageStateExtensions.cs (3)
32
state.
TagArray
[index++] = new(key, items[i].Value);
51
state.
TagArray
[index++] = new(key, items[i].Value);
67
state.
TagArray
[index++] = new(parameters[i].Name, parameters[i].Value);
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Logging\Internal\TestEnricher.cs (2)
24
EnrichmentBag.
TagArray
[index++] = KvpRequest;
25
EnrichmentBag.
TagArray
[index++] = KvpResponse;
Logging\LoggerMessageStateExtensionsTests.cs (4)
45
Assert.Equal(prefix + NormalizedHeader1, state.
TagArray
[0].Key);
46
Assert.Equal("v1", state.
TagArray
[0].Value);
48
Assert.Equal(prefix + NormalizedHeader2, state.
TagArray
[1].Key);
49
Assert.Equal("v2", state.
TagArray
[1].Value);
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
48
_incomingTags = value.
TagArray
;
Microsoft.Extensions.Telemetry.Abstractions (2)
Logging\LoggerMessageState.cs (2)
44
/// <returns>The index in the <see cref="
TagArray
"/> where to store the tags.</returns>
87
TagArray
[index] = new(name, value);
Microsoft.Extensions.Telemetry.Abstractions.Tests (27)
Logging\LoggerMessageStateTests.cs (27)
24
lms.
TagArray
[index] = new(PropName, Value);
26
Assert.Equal(PropName, lms.
TagArray
[0].Key);
27
Assert.Equal(Value, lms.
TagArray
[0].Value);
35
lms.
TagArray
[index] = new(PropName, Value);
38
Assert.Equal(PropName, lms.
TagArray
[0].Key);
39
Assert.Equal(Value, lms.
TagArray
[0].Value);
45
Assert.Equal(PropName, lms.
TagArray
[0].Key);
46
Assert.Equal(Value, lms.
TagArray
[0].Value);
56
lms.
TagArray
[index] = new(PropName + "X", Value);
58
Assert.Equal(2, lms.
TagArray
.Length);
59
Assert.Equal(PropName, lms.
TagArray
[0].Key);
60
Assert.Equal(Value, lms.
TagArray
[0].Value);
61
Assert.Equal(PropName + "X", lms.
TagArray
[1].Key);
62
Assert.Equal(Value, lms.
TagArray
[1].Value);
79
Assert.Equal("K1", lms.
TagArray
[0].Key);
80
Assert.Equal("V1", lms.
TagArray
[0].Value);
97
Assert.Equal(PropertyNamPrefix + "." + PropName, lms.
TagArray
[0].Key);
98
Assert.Equal(Value, lms.
TagArray
[0].Value);
102
Assert.Equal(PropertyNamPrefix + "." + PropName, lms.
TagArray
[0].Key);
103
Assert.Equal(Value, lms.
TagArray
[0].Value);
115
Assert.Equal(PropName, lms.
TagArray
[0].Key);
116
Assert.Equal(Value, lms.
TagArray
[0].Value);
120
Assert.Equal(PropName, lms.
TagArray
[0].Key);
121
Assert.Equal(Value, lms.
TagArray
[0].Value);
140
lms.
TagArray
[index] = new(PropName, Value);
144
Assert.Equal(lms.
TagArray
.ToArray(), list.ToArray());
150
lms.
TagArray
[index] = new(PropName, Value);
Microsoft.Extensions.Telemetry.PerformanceTests (22)
ModernCodeGen.cs (22)
17
state.
TagArray
[6] = new("connectionId", connectionId);
18
state.
TagArray
[5] = new("type", type);
19
state.
TagArray
[4] = new("streamId", streamId);
20
state.
TagArray
[3] = new("length", length);
21
state.
TagArray
[2] = new("flags", flags);
22
state.
TagArray
[1] = new("other", other);
23
state.
TagArray
[0] = new("{OriginalFormat}", "Connection id '{connectionId}' received {type} frame for stream ID {streamId} with length {length} and flags {flags} and {other}");
32
var connectionId = s.
TagArray
[6].Value ?? "(null)";
33
var type = s.
TagArray
[5].Value ?? "(null)";
34
var streamId = s.
TagArray
[4].Value ?? "(null)";
35
var length = s.
TagArray
[3].Value ?? "(null)";
36
var flags = s.
TagArray
[2].Value ?? "(null)";
37
var other = s.
TagArray
[1].Value ?? "(null)";
52
state.
TagArray
[4] = new("start", start);
53
state.
TagArray
[3] = new("end", end);
54
state.
TagArray
[2] = new("options", options);
55
state.
TagArray
[1] = new("guid", guid.ToString());
56
state.
TagArray
[0] = new("{OriginalFormat}", "Range [{start}..{end}], options {options}, guid {guid}");
65
var start = s.
TagArray
[4].Value;
66
var end = s.
TagArray
[3].Value;
67
var options = s.
TagArray
[2].Value;
68
var guid = s.
TagArray
[1].Value;
Microsoft.Extensions.Telemetry.Tests (2)
Logging\ExtendedLoggerTests.cs (2)
62
lms.
TagArray
[index] = new("PK2", "PV2");
152
lms.
TagArray
[index] = new("PK2", "PV2");