Skip to content

Instantly share code, notes, and snippets.

@niemyjski
Created November 22, 2021 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niemyjski/dd726f89ff90d332f037d9cd2724a01b to your computer and use it in GitHub Desktop.
Save niemyjski/dd726f89ff90d332f037d9cd2724a01b to your computer and use it in GitHub Desktop.
Exceptionless Mark 500 Errors as critical
[Priority(100)]
public class Mark500ErrorsAsCritical : IEventPlugin {
public void Run(EventPluginContext ctx) {
if (!String.Equals(ctx.Event.Type, Event.KnownTypes.Error))
return;
if (ctx.ContextData.IsUnhandledError)
ctx.Event.Tags.Add(Event.KnownTags.Critical);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment