Nancy provider for Raygun service
C# Batchfile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Nancy.Raygun.1.7.0.nupkg
Nancy.Raygun.1.8.0.nupkg
Nancy.Raygun.nuspec
NuGet.exe
README.md
package-nugets.bat
web.config.transform

README.md

Nancy.Raygun

Raygun is a service for automatically reporting, tracking and alerting you to errors in your applications. Discover and resolve errors faster than ever before and keep your users happy.

http://raygun.io/

This library is for use with a application, it's based on the offical library https://github.com/MindscapeHQ/raygun4net from Mindscape, with the key different that it uses the NancyContext rather than HttpContext.Current, meaning more information can be included specific to a Nancy application. It also wires up the error handling for you just by including the project into your application, by implementing IApplicationStartup for you.

Installing Nancy.Raygun

Using Nuget, install the Nancy.Raygun package.

PM> Install-Package Nancy.Raygun

Configuring Raygun (RaygunSettings)

In your web.config add the section

<configSections>
  <section name="RaygunSettings" type="Nancy.Raygun.RaygunSettings, Nancy.Raygun" />
</configSections>

And the setting for your API Key

<RaygunSettings apikey="* your api key goes here *" />

Configuring Raygun (appSettings)

If you're hosting on Azure/AppHabor then you may want to use appSettings instead so you can add the key via the portal/administration area.

To do this, add a the key nr.apiKey to your appSettings, with the value being your API Key.

<appSettings>
  <add key="nr.apiKey" value="* your api key goes here *" />
</appSettings>

That's it, now you can enjoy watching all your errors get Zapped by Raygun. Don't let Robby down, he wants your errors!