Giter VIP home page Giter VIP logo

Comments (4)

bruno-garcia avatar bruno-garcia commented on July 27, 2024

Thank you for raising the issue.
We are working on a solution.

For ASP.NET Core, we've just released a preview of a new integration which hooks into the WebHost. Development is happening here.

It's also affected by the non-rendering of User-Agent when Contexts are available but you don't need to use reflection to work around it as it has a public setter which can be modified on BeforeSend:

Here's an example of the BeforeSend hook:

https://github.com/getsentry/sentry-dotnet/blob/cf470a74995a58f0aa1a26b7bb654c21c5ed71dc/samples/Sentry.Samples.Console.Customized/Program.cs#L43

You can simply:

@event.Contexts = null;

It's unfortunate that all the Contexts interface will be unavailable but I understand the User-Agent info being at the top is the most relevant in the case of ASP.NET and ASP.NET Core.

If you have the chance to try our preview and give any feedback, I'd really appreciate it.

from raven-csharp.

kanadaj avatar kanadaj commented on July 27, 2024

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 User-Agent being on the top as having the string parsed and the browser info tagged, since without it, it's hard to spot cases where a specific browser is the cause of an issue.

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.

from raven-csharp.

bruno-garcia avatar bruno-garcia commented on July 27, 2024

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 0.0.1-preview1 is not something you'd want to put in production. But at the same time we need to run some tests in different apps to make sure it's good to release a 1.0 version of it.

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

from raven-csharp.

bruno-garcia avatar bruno-garcia commented on July 27, 2024

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.

from raven-csharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.