-
-
Notifications
You must be signed in to change notification settings - Fork 122
Sentry skips User Agent parsing if context is set; SentryEvent.Context is internal #261
Comments
Thank you for raising the issue. For ASP.NET Core, we've just released a preview of a new integration which hooks into the It's also affected by the non-rendering of Here's an example of the You can simply: @event.Contexts = null; It's unfortunate that all the If you have the chance to try our preview and give any feedback, I'd really appreciate it. |
That looks like a very ominous version number to put on a production server, but I'll play around with it for the project we are starting on Monday :) . The problem isn't as much of the It'd be preferable if the platform itself supported a combination of runtime information and user agent parsing (as well as getting those fancy widgets on the top for browser info), but that's a problem for another repository. |
Yeah I see what you are saying. Makes sense. If User-Agent is available, the tagging as you suggested and also the widgets are shown. And additionally, the server information also available, perhaps further down the screen. This is something we have to work on Sentry itself and @billyvg will surely have a saying on this :) True that a Thank you for giving it a try, even if just in Staging or just on a new project with little load/impact it helps us a lot! I'm online on Gitter if you have any questions: https://gitter.im/getsentry/dotnet |
We've released the new SDK which solves this issue: https://github.com/getsentry/sentry-dotnet/releases https://www.nuget.org/packages/Sentry I'll close this issue but please feel free to reopen or open one in the new repository if you have any issues integrating. We'll be happy to help you moving over to the new SDK. |
As said in the title, Sentry's own User Agent parser always skips parsing if there is a Context specified. In use cases like ASP.NET and ASP.NET Core, the context usually contains no real value (as the runtime and OS version is controller by the developers), so being able to set Context to
null
would be a boon.In the meanwhile, for anyone who is looking into why User-Agent isn't parsed into Browser and OS, here is a quick workaround to remove server info from the context and instead have the User Agent parsed:
The text was updated successfully, but these errors were encountered: