public static string ToInvokeString(HttpRequestMessage request)
{
// For display in the Dashboard, we want to be sure we don't log
// any sensitive portions of the URI (e.g. query params, headers, etc.)
string uri = request.RequestUri?.GetLeftPart(UriPartial.Path);
return $"Method: {request.Method}, Uri: {uri}";
}