46 references to Redacted
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Logging\AcceptanceTests.Mvc.cs (2)
55
[InlineData(HttpRouteParameterRedactionMode.Strict, $"api/users/<redacted:testUserId>/{TelemetryConstants.
Redacted
}")]
117
Assert.Single(state, x => x.Key == NoDataClassParamName && x.Value == TelemetryConstants.
Redacted
);
Logging\AcceptanceTests.Routing.cs (3)
92
[InlineData(Strict, "ConventionalRouting/GetData/12345", $"ConventionalRouting/GetData/{TelemetryConstants.
Redacted
}")]
110
[InlineData(Strict, "AttributeRouting/get-4/top10", $"AttributeRouting/get-4/{TelemetryConstants.
Redacted
}")]
126
[InlineData(Strict, "mixed/attribute-routing-4/test1234", $"mixed/attribute-routing-4/{TelemetryConstants.
Redacted
}")]
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpRequestReader.cs (1)
155
logRecord.Path = TelemetryConstants.
Redacted
;
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\AcceptanceTests.cs (4)
47
Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.
Redacted
}", logRecord.Message);
80
Assert.EndsWith($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.
Redacted
}", firstLogRecord.Message);
88
Assert.Equal($"{HttpMethod.Get} {_unreachableRequestUri.Host}/{TelemetryConstants.
Redacted
}", secondLogRecord.Message);
117
Assert.Equal($"{httpRequestMessage.Method} {httpRequestMessage.RequestUri.Host}/{TelemetryConstants.
Redacted
}", logRecord.Message);
Logging\HttpClientLoggerTest.cs (8)
245
logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
342
logRecordRequest.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
351
logRecordFull.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
441
Assert.Equal($"{httpRequestMessage.Method} {httpRequestMessage.RequestUri.Host}/{TelemetryConstants.
Redacted
}", logRecord.Message);
447
logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
562
logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
652
logRecordState.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
925
logRecord.Contains(HttpClientLoggingTagNames.Path, TelemetryConstants.
Redacted
);
Logging\HttpRequestReaderTest.cs (2)
51
Path = TelemetryConstants.
Redacted
,
453
Path = TelemetryConstants.
Redacted
,
Microsoft.Extensions.Telemetry (2)
Http\HttpRouteFormatter.cs (1)
228
_ = outputBuffer.Append(TelemetryConstants.
Redacted
.AsSpan());
Http\HttpRouteParser.cs (1)
262
return TelemetryConstants.
Redacted
;
Microsoft.Extensions.Telemetry.Abstractions.Tests (1)
Http\AbstractionTests.cs (1)
40
Assert.Equal("REDACTED", TelemetryConstants.
Redacted
);
Microsoft.Extensions.Telemetry.Tests (23)
Http\HttpParserTests.cs (6)
90
ValidateRouteParameter(httpRouteParameters[1], "chatId", TelemetryConstants.
Redacted
, true);
109
ValidateRouteParameter(httpRouteParameters[1], "chatId", TelemetryConstants.
Redacted
, true);
169
ValidateRouteParameter(httpRouteParameters[0], "routeId", TelemetryConstants.
Redacted
, true);
187
ValidateRouteParameter(httpRouteParameters[0], "routeId", TelemetryConstants.
Redacted
, true);
209
ValidateRouteParameter(httpRouteParameters[1], "chatId", TelemetryConstants.
Redacted
, true);
240
ValidateRouteParameter(httpRouteParameters[0], "routeId", TelemetryConstants.
Redacted
, true);
Http\HttpRouteFormatterTests.cs (17)
28
Assert.Equal($"api/routes/{TelemetryConstants.
Redacted
}/chats/{TelemetryConstants.
Redacted
}", formattedPath);
41
Assert.Equal($"api/routes/{TelemetryConstants.
Redacted
}/chats/{TelemetryConstants.
Redacted
}", formattedPath);
54
Assert.Equal($"api/routes/{TelemetryConstants.
Redacted
}/chats/{TelemetryConstants.
Redacted
}", formattedPath);
67
Assert.Equal($"api/chats:{TelemetryConstants.
Redacted
}@{TelemetryConstants.
Redacted
}", formattedPath);
80
Assert.Equal($"api/chats:{TelemetryConstants.
Redacted
}@{TelemetryConstants.
Redacted
}/messages", formattedPath);
169
Assert.Equal($"api/routes/Redacted:routeId123/chats/{TelemetryConstants.
Redacted
}", formattedPath);
205
Assert.Equal($"api/routes/{TelemetryConstants.
Redacted
}/chats/{TelemetryConstants.
Redacted
}", formattedPath);
265
Assert.Equal($"Redacted:routeId123/chats/{TelemetryConstants.
Redacted
}", formattedPath);
285
Assert.Equal($"Redacted:routeId123/chats/{TelemetryConstants.
Redacted
}", formattedPath);
305
Assert.Equal($"Redacted:routeId123/chats/{TelemetryConstants.
Redacted
}", formattedPath);
332
Assert.Equal($"api/routes/{TelemetryConstants.
Redacted
}/chats/Redacted:chatId123", formattedPath);