All errors from .NET applications are automatically captured by Atatus. If you wish to report errors manually, you can do either by CaptureError() or CaptureException() method.

Required Imports

1. CaptureError

When you don’t have an exception instance, you can report an error with this method.

Syntax

Parameter

Example

2. CaptureException

When you have an exception instance, you can report error with this method. You can capture exceptions on the tracer, transaction, or span level.

Syntax

Option 1: Using Tracer
Option 2: Using Transaction
Option 3: Using Span

Parameter

Examples

Capture on Tracer:
Capture on Transaction:
Capture on Span:

See also