Created
November 22, 2021 14:19
-
-
Save niemyjski/dd726f89ff90d332f037d9cd2724a01b to your computer and use it in GitHub Desktop.
Exceptionless Mark 500 Errors as critical
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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