GithubHelp home page GithubHelp logo

Comments (6)

joshrobb avatar joshrobb commented on September 23, 2024

You cannot just silently destroy an application's capability to record unhandled exceptions.

This isn't silently destroying anything. It's up to the developer to decide how to integrate raygun into their application.

We don't mark the error as handled - where you choose to insert Raygun into your application is up to you. If you can't afford the possibility of losing a single error report - then you can wire up other logging solutions (log4net, NLog, System.Diagnostics).

We could queue errors if the API is returning bad results - but then if the application closes (or the asp.net app domain spins down) we'd have to persist these somewhere - and re-send them later - which is all getting pretty complex. (Multi-threadded transactional storage for temporary persistance etc).

We'd love to hear any other suggestions you have.

from raygun4net.

dotnetchris avatar dotnetchris commented on September 23, 2024

For you to have an API that is Handle(error) that returns with no issue when in fact it failed, yes you are silently destroying the exceptions.

Either you should

try { }
catch(Exception e)
{ throw new RaygunError(e, orginal exception / raygun message) }

Or expose an event to be hooked into for raygun errors just like i said in the original issue text.

from raygun4net.

martin308 avatar martin308 commented on September 23, 2024

As @joshrobb said we are not silently destroying the exceptions as we don't mark them as handled, so they will continue to bubble up to any other logging that you may have.

It would be "beyond bad practice" for a logging framework to throw an exception if it couldn't log, take a look at the NLog source which does something similar.

Again happy to look at any ideas you have in a PR 👍

from raygun4net.

dotnetchris avatar dotnetchris commented on September 23, 2024

Sigh, seeing this closed nearly cost you a customer. You're lucky AppFail's client is heavily bonded to the web.config its impossible for us to use without it polluting our web.config with gunk, and fixing that would would require substantial amounts of effort I have no interest in and I doubt AppFail would either. I'll have a pull request for properly exposing the event tomorrow either done myself or one of my employees.

from raygun4net.

dotnetchris avatar dotnetchris commented on September 23, 2024

Well atleast I realize from seeing on other issues the repeated usage of PR, assumingly meaning pull request, is much less of "go away".

from raygun4net.

martin308 avatar martin308 commented on September 23, 2024

Bingo, always keen to see new ideas for how to handle things. It's much easier to debate working code

from raygun4net.

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.