Capture
Captures messages or exceptions and sends them to Sentry for error tracking and monitoring.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Message - The message content to capture and send to Sentry.
Options
- Type - Specifies whether to capture as a message or exception. Options are "Info" (message) or "Error" (exception).
- DSN - The Sentry DSN (Data Source Name) credential used to authenticate with the Sentry service.
How It Works
The Capture node integrates with the Sentry service to send error reports and messages for tracking and monitoring. When executed, the node:
- Validates the provided inputs (Message)
- Initializes the Sentry client with the provided DSN
- Captures the message or exception based on the selected Type
- Flushes the Sentry client to ensure all data is sent
Requirements
- A valid Sentry account and project
- The Sentry DSN for your project
- A non-empty message to capture
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid DSN credential
- Empty message content
- Invalid Type selection
- Sentry client initialization errors
Usage Notes
- The Type option determines whether the message is captured as an info message or error exception
- Ensure your Sentry DSN is correctly configured in the credentials
- The message content should not be empty
- Sentry captures additional context about the environment automatically