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