You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jmoeltjen edited this page Apr 16, 2016
·
1 revision
We try to group events into intuitive stacks, but sometimes you might want to create your own for organization, reporting, troubleshooting, etc.
We created SetManualStackingKey to facilitate this need.
Creating Custom Stacks
In the below examples, we use SetManualStackingKey and are naming the custom stack "MyCustomStackingKey".
C# Example
try{thrownewApplicationException("Unable to create order from quote.");}catch(Exceptionex){ex.ToExceptionless().SetManualStackingKey("MyCustomStackingKey").Submit();}
Or, you can set the stacking directly on an event (e.g., inside a plugin).
varclient=exceptionless.ExceptionlessClient.default;// Node.Js// var client = require('exceptionless').ExceptionlessClient.default;try{thrownewError('Unable to create order from quote.');}catch(error){client.createException(error).setManualStackingKey('MyCustomStackingKey').submit();}