Closed davidrevoledo closed 6 years ago
Hi @davidrevoledo sorry for the late input here, but with ASP.NET Core the HttpContext is not exposed in the same way as full framework ASP.NET, so we've provided a way to pass the HttpContext to the client when sending errors manually. I'd suggest you have a read of this https://raygun.com/docs/languages/net/aspnetcore#raygun-middleware specifically how to inject the IRaygunAspNetCoreClientProvider
instance into your controllers.
@j5alive I did it manually with the HttpContextAccesor and custom data. thanks
A webapp is being migrated from asp.net to asp.net core and we're using Raygun to log all the crashes, but with asp.net the error are logged with the http information about the request automatically with any configurations, showing the url, the http type and even the headers, cookies values.
This doesn't have the same behavior with asp.net core where the
Http
is not shownedThe code to log exceptions is the same in both :
Thanks in advance :)