private async Task SendAsync(Exception exception, IList<string> tags, IDictionary userCustomData, HttpContext context)
{
if (CanSend(exception))
{
_currentHttpContext.Value = context;
_currentRequestMessage.Value = await BuildRequestMessage();
_currentResponseMessage.Value = BuildResponseMessage();
await StripAndSend(exception, tags, userCustomData);
FlagAsSent(exception);
}
}