Blog |

Announcing Our New .NET Error Monitoring SDK

Announcing Our New .NET Error Monitoring SDK
Table of Contents

Rollbar is happy to announce our official .NET error monitoring SDK. This new .NET SDK is more rreliable, supports all of the popular .NET platforms (NET Standard, .NET Framework, .NET Core, ASP.NET MVC, UWP, Mono, Xamarin), easy to configure, multithreading friendly, and more.

Rollbar helps you monitor errors in production applications. It provides you with a live error feed from your applications, including complete stack traces and contextual data to debug errors quickly. It also lets you easily understand your user experience by tracking who is affected by each error. Check out our features page to learn more about how it can help you.

.NET errors screenshot

{: .imgcaption}
.NET error monitoring, as seen in Rollbar

Improvements

  1. Multi-target support including .NET Standard 2.0 and up, .NET Framework (or Full Framework) 4.5 and up, and .NET Core 2.0 and up. It also supports UWP, Mono, and Xamarin.
  2. Native asynchronous (“fire-and-forget”) implementation. Due to its async nature the SDK has very little impact on its host at runtime. A blocking (synchronous) implementation of the same methods is also available.
  3. Rate limiting and buffering of all messages.
  4. Automatic retries in case of network failure.
  5. Person information is now a part of a notifier configuration object, including field scrubbing for privacy.
  6. Improved interface by separately defining ILogger and IRollbar. ILogger also now supports chaining calls.
  7. Multiple instances of the notifier can be separately and differently configured, including different access tokens.
  8. Easier configuration including support for app.config and appsettings.json files.
  9. Subscribe to receive any internal operational/communication event or an error happening within the notifier.
  10. More usage samples and sample apps.

Upgrading

The public API of our notifier v1 is not backward compatible with the pre-v1 releases. However, the conversion/upgrade process is very straightforward by using find-and-replace tools across your code base.

You should change your config from the old version:

Rollbar.Init(new RollbarConfig("POST_SERVER_ITEM_ACCESS_TOKEN"));

to

RollbarLocator.RollbarInstance
.Configure(new RollbarConfig("POST_SERVER_ITEM_ACCESS_TOKEN") { Environment = "test" };

Additionally, anywhere in your code that you were sending error reports via

Rollbar.Report(new Exception("trying out an error", new NullReferenceException()));
Rollbar.Report("basic info log example.");

Will need to be replaced with something like this:

RollbarLocator.RollbarInstance.Error(new Exception("trying out an error", new NullReferenceException()));
RollbarLocator.RollbarInstance.Info("basic info log example.");

Learn more in our documentation for .NET.


If you haven’t already, sign up for a 14-day free trial of Rollbar and stop flying blind in production.