Skip to main content

App error reporting and observability

Monitor Retool apps by connecting with Datadog or Sentry.

Retool supports out-of-the-box error monitoring and reporting on workflows and apps with Datadog or Sentry. Once configured, Retool reports any production errors—including a callstack and descriptive tags—to either provider. For custom app error reporting and integrations with other observability providers, you can create a workflow using Retool Events

Retool does not currently support sending workflow errors to other observability providers with Retool Events.

Errors encountered while editing an app or workflow are not reported.

1. Configure observability provider

To configure Datadog:

  1. Create a Datadog pipeline to consume logs. Retool streams error logs from service:retool-error-monitor.
  2. Create a Datadog API key to use in the next step. Note your organization's Datadog Site.

2. Connect providers to Retool

Next, configure your Retool organization to connect to your observability provider. You can configure the connection by either:

  • Navigating to Settings > Observability.
  • Using the Retool API to programmatically configure observability provider connections.

Configure the API key setting with the Datadog API key you created in the previous step. Make sure you specify the correct Datadog Site.

Error types

Retool reports the following error types and includes a callstack.

DescriptionTypeAdditional trace contents
Resource not foundQueryMissing resource name.
Error processing queryQueryQuery input values, context lines.
Query with failure responseQueryQuery input values.
JS Code errorQueryContext lines, additional scope values.
Transformer errorTransformerContext lines.
Component errorComponentContext lines.
Page load errorServerModule UUID.

Error tags

Tags can be used to filter, categorize, or route errors to different owners using the following format: tag:value.

Datadog tagSentry tagDetailsExample
app_nameapp_nameThe app name.My App Name
app_pathapp_pathThe app path.Jenny/My App Name
app_releaseapp_releaseThe app release. tag0.1.0
app_uuidapp_uuidThe app ID.a031dff4-1d38-11ef-8787-b7ac527da581
browserbrowserThe browser.chrome
browser_versionbrowser_versionBrowser version124.0.0
embed_uuidembed_uuidThe embed app import ID (if is_embedded is true).612dc16d-9230-4133-bf22-cfcac703a036
envenvironmentThe environment (always production).production
is_embeddedis_embeddedWhether the app was loaded using an embed URL.false
levellevelThe log level (always error).error
module_uuidmodule_uuidThe module ID (if error originated from module).68ec78b2-f20b-11ee-bb14-13ef186a41a6
org_sidorg_sidThe organization ID.org_9848411250f241939b5092af3714b4c5
ososThe operating system.Mac OS
playground_query_uuidplayground_query_uuidThe imported query ID (if error originated from a query imported from the Query Library).9ba338f8-ef18-4c83-8606-2bf775168ad0
plugin_idplugin_idThe ID for the widget, query, or function that triggered the errorbutton1
releasereleaseThe Retool version.3.58.0
resource_idresource_idThe resource ID (if error originated from a query).526a6aa4-c237-4711-bc12-4a0c7a5fa276 or resource display name
sourcesourceThe origin (either runtime or server).runtime
status_codestatus_codeThe HTTP status code (if error originated from a network query).404
urlurlThe full URL used to access the app, including any string and hash parameters.https://example.retool.com/app/my-app?_releaseVersion=...
useruser.emailThe email of the user who experienced the error.jenny@acme.com
view_modeview_modeThe view mode (either presentation for apps in view mode or public for embedded apps).presentation

Filtering and routing

You can configure observability providers to filter and route errors reported for Retool apps.

Datadog errors are sent as logs. You can filter for all Retool app errors by setting service:retool-error-monitor or any additional tags. Refer to Datadog's error tracking documentation to create rules for Retool app errors using service:retool-error-monitor.