MindscapeHQ / raygun4net

Raygun provider for .NET
https://raygun.com
MIT License
125 stars 91 forks source link

Use Singleton RaygunClient in RaygunHttpModule (.NET Framework) #537

Closed MattByers closed 4 months ago

MattByers commented 4 months ago

Description

Update the RaygunHttpModule for ASP.NET Framework applications to store and use a single RaygunClient instance. This avoids a new RaygunClient and in turn a ThrottledBackgroundMessageProcessor, from being created for every exception handled by the RaygunHttpModule. The ThrottledBackgroundMessageProcessor creates a number of background worker threads, so instantiating it for each exception can be costly.