Skip to main content
This topic explains how to use LaunchDarkly observability features to understand and view in your application. The Errors tab displays a table of the error groups recorded for your application.

Get started

To instrument your application to capture errors, read the documentation on Observability SDKs. The functionality is available through plugins to the LaunchDarkly JavaScript .

View errors

To view errors, click Observability > Explore in the left sidebar, then click the Errors tab. The Errors tab helps you find errors by querying the error attributes you choose. It provides a main chart to help you aggregate and visualize the errors returned by your query, and a table of the matching error groups. An error group collects the instances of one error. To learn how LaunchDarkly groups errors, read Group errors. By default, the tab shows error groups with an “Open” status.
The 'Errors' tab with an example query, chart, and table.

The 'Errors' tab with an example query, chart, and table.

To change how the chart visualizes errors, click Options and choose the functions, grouping, limits, and buckets it uses. The table includes these columns for each error group:
  • Error body: The error message.
  • Status: The status of the error group, either “Open,” “Ignored,” or “Resolved.” To learn how to change it, read Manage errors.
  • Last occurrence and First occurrence: When the error most recently occurred, and when it first occurred.
  • Affected users (30d): The number of users who encountered the error in the last 30 days.
  • Instances (30d): The number of times the error occurred in the last 30 days.
  • Trend (7d): A chart of how often the error occurred over the last seven days.
Click the Last occurrence or First occurrence column name to sort the table by that column. Click it again to reverse the sort order. To show or hide columns, click the Selected columns menu in the table header. You can also drag a column name to reorder the columns. Each row has an actions menu with these options:
  • Open: Open the error details page.
  • Open in new tab: Open the error details page in a new browser tab.
  • Copy link: Copy a link to the error details page.
  • Ask Vega: Start a Vega chat with the error group attached. This option appears only if your account has access to Vega. To learn more, read Vega.
To review only the errors recorded for one service, use that service’s details panel. To learn more, read Service details. To view details about a specific error, click its row in the table. The error details page appears. The page displays details about how many times the error has occurred, how many users have been affected, and when the error was first and most recently observed. The page opens to the Instances tab. To return to the Errors tab, click Errors in the breadcrumb.

The Instances tab

Use this tab to get an overview of the error’s impact and see stack traces on per-instance occurrences. You can see details about a specific occurrence of an error, like what browser the user encountered it in, what URL they had loaded when it occurred, and more. This tab includes a “Stacktrace” section, which LaunchDarkly populates:
  • if your sourcemap is inline, meaning it’s shipped as part of your application, or
  • if you have uploaded your sourcemap to LaunchDarkly. To learn how to upload your sourcemap, read Use ldcli for uploading sourcemaps, or
  • if you have uploaded symbol files for a mobile application. To learn how to upload symbol files, read Use ldcli for uploading symbols.
A detailed view of an error.

A detailed view of an error.

The Metrics tab

An error’s Metrics tab shows you details about how the error has occurred over time and across different . You can review the number of times an error has occurred in a given second, the environments and browsers the error has occurred in, and more.
A detailed view of an error.

A detailed view of an error.

Group errors

LaunchDarkly groups errors together based on their error message and stack trace. When your application throws an error, LaunchDarkly finds the closest matching error and adds the new error instance to it. An error matches if:
  • it has the same error message, or
  • it has the same top stack frame and three of the next four stack frames are the same, in any order
A stack frame matches if:
  • it has the same file name, function name, line number, and column number, or
  • it has the same source code and context, if sourcemaps are enabled
If there is no match with an existing error, LaunchDarkly creates a new error group.

Manage errors

As you review errors, you can change their status. To change the status of an error:
  1. Click Observability > Explore in the left sidebar.
  2. Click the Errors tab.
  3. Click the error you want to update. The error details page appears. New errors start with an “Open” status.
  4. Click the status menu to change the status:
    • Select a new status from the menu. You can change an error’s status to “Ignored” or “Resolved.”
    • Select Snooze to snooze the error until the specified time.
The status menu for an error.

The status menu for an error.

You can also configure LaunchDarkly to automatically resolve errors that have not appeared for a given time period. To learn how, read Observability settings. If your account uses the Jira Cloud integration, you can create a Jira issue directly from an error to track the work to fix it. To learn how, read Create a Jira issue from an error. To search the Errors tab, use the query builder. To learn more, read Search specification.

Search attributes

By default, the observability SDK plugin automatically injects the following attributes to provide additional help with searching for :
CategoryAttributeDescriptionExample
Device and browserbrowserBrowser the end user was using.Chrome
visited_urlURL where the error occurred.https://app.example.com/1/errors
Error identityeventThe title of the error.Maximum call stack size exceeded
client_idID associated with the error, added by LaunchDarkly. This can serve as a unique identifier if there is no context associated with the error.DQbQCEHN0FLuwCeW50AeLI0cH6C4
secure_session_id ID that contains the error.wh1jcuN5F9G6Ra5CKeCjdIk6Rbyd
trace_idTrace ID that contains this error.7654ff38c4631d5a51b26f7e637eea3c
Error propertiesstatusStatus of the error group.RESOLVED
stack_traceSpecifies whether a stack trace is associated with the error. You can refine results with the following additional attributes: error, file_name, function_name, line_number.true
tagTag applied to the error.example error
typeGeneral type of the error.React.ErrorBoundary
feature_flagSpecifies whether the session is associated with a feature flag. You can refine results with the following additional attributes: context.id, contextKeys, key, provider.name, result.reason.inExperiment, result.reason.kind, result.value, and set.id.true
Service and applicationenvironmentThe environment key, based on the SDK credentials used in the observability SDKs.production
has_sessionWhether the error is tied to a session.true
service_nameName of the service specified in the SDK plugin. To learn more, read Versioning sessions and errors.private-graph
service_versionVersion of the service specified in the observability SDK plugin. To learn more, read Versioning sessions and errors.e1845285cb360410aee05c61dd0cc57f85afe6da

Filter

You can filter out errors that you do not want to view in LaunchDarkly. This is useful for errors that you know are not relevant to your application, or that are not actionable. Filtered errors do not count against your errors quota.

Ingestion filters

You can set up ingestion filters to manage the number of errors recorded in the following ways:
  • Filter errors by configuring rules to match particular error attributes. Each rule can be applied to a percentage of incoming errors. For example, you may configure a rule to ingest 1% of errors in the development environment. For each error LaunchDarkly receives, it makes a randomized decision that results in storing only 1% of those matching errors.
  • Rate limit the maximum number of data points ingested in a one-minute window. For example, you may configure a rate limit of 100 errors per minute. This lets you limit the number of errors recorded in case of a significant spike in use of your application.
You can configure these filters from your settings. To learn how, read Observability settings.