Comments (6)
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.
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.
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.
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.
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.
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)
- AspNetCore Package: ExcludeErrorsFromLocal is not respected
- IsolatedRaygunOfflineStorage.cs uses MD-5 which causes FIPS compliance errors when FIPS compliance is set on a computer HOT 3
- Lack of ConfigureAwait(false) HOT 5
- HttpContext.Current is null when attaching RaygunWebApiClient HOT 2
- Why Mindscape.Raygun4Net.AspNetCore needs Microsoft.AspNetCore.Http (.NET5) HOT 5
- Cannot install latest version! Mindscape.Raygun4Net.AspNetCore": "6.6.3 HOT 5
- Breadcrumbs not available when upgrading a WinForms app to .NET (Core) HOT 2
- NotSupportedException when adding a tag from ASP.NET middleware HOT 6
- View events not logged correctly in Xamarin.Forms HOT 11
- User with identifier incorrectly displays as an anonymous user HOT 5
- Changelog or release history HOT 4
- Changelog between 5.11.0 and 5.13.0, 6.0.3? HOT 4
- Type exists in two different assemblies build error in fresh project HOT 8
- Testing issue for Raygun - Please ignore
- Memory Leak and Stability Concerns Introduced by UnhandledExceptionBridge Subscription in RaygunClientBase Constructor (#504) HOT 4
- LockRecursionException on UnhandledExceptionBridge on 9.0.0 HOT 8
- Add default tags to outgoing errors HOT 2
- Upgrading from 9.x to 10.x, DefaultRaygunAspNetCoreClientProvider is lost HOT 5
- Add support for native iOS and Android symbolication support for the .NET provider (.net-Android, .net-iOS) HOT 3
- RaygunClient.SendInBackground (AspNetCore) and IRaygunUserProvider missing HttpContext HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raygun4net.