try { // some code that produces an exception } catch(Exception ex) { ex.ToExceptionless().Submit(); }
try { // some code that produces an exception } catch(Exception ex) { ex.ToExceptionless().AddTags("database", "error").SetUserIdentity("john.doe").Submit(); }This example is similar to the first one but adds some additional details to the Exceptionless Exception object. The `AddTags` method adds some descriptive tags to the exception to help with categorization while the `SetUserIdentity` method sets the user identity of the user who experienced the exception. Package library: `Exceptionless.NetCore`