22 writes to Path
Microsoft.Extensions.Http.Diagnostics (7)
Logging\Internal\HttpRequestReader.cs (6)
224
logRecord.
Path
= TelemetryConstants.Unknown;
230
logRecord.
Path
= request.RequestUri.AbsolutePath;
240
logRecord.
Path
= TelemetryConstants.Redacted;
247
logRecord.
Path
= requestMetadata.RequestName == TelemetryConstants.Unknown
257
logRecord.
Path
= _routeFormatter.Format(in routeSegments, request.RequestUri.AbsolutePath, _routeParameterRedactionMode, _defaultSensitiveParameters);
263
logRecord.
Path
= route;
Logging\Internal\LogRecord.cs (1)
93
Path
= string.Empty;
Microsoft.Extensions.Http.Diagnostics.Tests (15)
Logging\HttpClientLoggerTest.cs (6)
174
Path
= "foo/bar",
300
Path
= "foo/bar",
407
Path
= "foo/bar",
504
Path
= "foo/bar",
620
Path
= "foo/bar",
884
Path
= "foo/bar",
Logging\HttpRequestReaderTest.cs (8)
52
Path
= TelemetryConstants.Redacted,
122
Path
= TelemetryConstants.Unknown,
182
Path
= "foo/bar/123",
255
Path
= "foo/bar/{userId}",
333
Path
= "/foo/bar/123",
391
Path
= "TestRequest",
464
Path
= TelemetryConstants.Redacted,
533
Path
= TelemetryConstants.Redacted,
Logging\LogRecordPoolingTest.cs (1)
27
logRecord1.
Path
= testObject.Path;
15 references to Path
Microsoft.Extensions.Http.Diagnostics (4)
Logging\Internal\HttpClientLogger.cs (3)
93
: logRecord.
Path
;
197
Log.ResponseReadError(_logger, ex, request.Method, logRecord.Host, logRecord.
Path
);
229
Log.EnrichmentError(_logger, e, enricher.GetType().FullName, request.Method, logRecord.Host, logRecord.
Path
);
Logging\Internal\Log.cs (1)
108
loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.Path, record.
Path
);
Microsoft.Extensions.Http.Diagnostics.Tests (11)
Logging\HttpClientLoggerTest.cs (6)
186
RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.
Path
}"),
312
RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.
Path
}"),
419
RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.
Path
}"),
516
RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.
Path
}"),
632
RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.
Path
}"),
900
RequestUri = new($"http://{expectedLogRecord.Host}/{expectedLogRecord.
Path
}"),
Logging\HttpRequestReaderTest.cs (3)
623
actualRecord.
Path
.Should().Be(TelemetryConstants.Redacted);
913
logRecord.
Path
.Should().NotContain(pathParamValue);
914
logRecord.
Path
.Should().Contain(Redacted);
Logging\LogRecordPoolingTest.cs (2)
27
logRecord1.Path = testObject.
Path
;
40
logRecord2.
Path
.Should().Be(string.Empty);