Helm Docs

Logging

The Logging page shows the unresolved errors that Sentry has recorded for your apps, inside Helm, next to your builds and previews. This page explains how to connect Sentry, how to choose which Sentry projects belong to your Helm project, and how to read the list.

Who this is for: The Logging page appears in the sidebar only when the project has the Build module and you have access to it. Without that access, opening the page by its address shows "Build module required." Connecting Sentry on the settings tab needs the Project Admin role or higher. You also need a Sentry account that can create an auth token for your Sentry organization.

What this page is for

Sentry is an error-tracking service. Your apps and backend send it a report each time something crashes or throws an error, and Sentry groups the reports into issues: one issue per distinct problem, with a count of how often it happened. Helm does not collect these errors itself. It reads the issues from Sentry with a token you give it and shows the ones that are not resolved yet.

One Helm project often matches several Sentry projects, for example one for the iOS app, one for the Android app and one for the backend. You choose which ones belong to the Helm project, and switch between them on the page.

Helm works with Sentry's hosted service at sentry.io.

Step 1 — Create a Sentry auth token

An auth token is a long secret string that lets Helm read your Sentry data as if it were you. Helm only reads; it never changes anything in Sentry.

  1. Sign in to Sentry and open your personal auth tokens page at https://sentry.io/settings/account/api/auth-tokens/.
  2. Click Create New Token.
  3. Give the token Read access to Project, Issue & Event and Organization. The field help in Helm asks for the matching scopes: org:read, project:read and event:read.
  4. Create the token and copy it. Sentry shows it only once.

You also need your Sentry organization's slug: the short name in your Sentry web address. If you open Sentry at https://acme.sentry.io/, the slug is acme.

Step 2 — Connect Sentry in Helm

  1. Open your project in Helm and click Settings in the sidebar.
  2. Under Build, click Logging. The tab is at /<company>/<project>/settings/logging/.
  3. In Sentry Auth Token, paste the token from Step 1. The field is marked SENSITIVE: Helm stores it encrypted and never shows it again. After saving, the field shows dots.
  4. In Sentry Org Slug, enter your organization slug, for example acme.
  5. Click Save Changes. The tab shows "Settings saved successfully."

Until both values are saved, the Sentry Projects field says "Configure Sentry auth token and org slug above, then save to enable project discovery."

Step 3 — Choose the Sentry projects

  1. On the same tab, click the Search Sentry projects... box under Sentry Projects. Helm lists the projects in your Sentry organization, up to 25 at a time.
  2. Type part of a project's name, slug or platform to narrow the list, then click a project to add it. It appears as a card with its name, platform and slug.
  3. Add every Sentry project that belongs to this Helm project. To remove one, click the × on its card.
  4. Click Save Changes.

The order of the cards matters: the Logging page opens on the first Sentry project in the list.

Read the Logging page

  1. Open your project in Helm.
  2. In the sidebar, under Build, click Logging. The page is at /<company>/<project>/logging/.
  3. In Sentry Project at the top right, choose the Sentry project to look at. Each choice shows the project name and its platform, for example "ios-app · apple-ios". The page reloads with that project's issues.

Helm asks Sentry for up to 25 unresolved issues and refreshes the list every 15 seconds while the page is open. Each issue shows:

  • A level label: fatal, error, warning or info, and Sentry's status for the issue, such as unresolved.
  • The issue's title, usually the error type and message, and under it the culprit: the function or file where Sentry thinks the error happened.
  • How many events (separate occurrences) and how many users the issue has affected.
  • When Sentry first saw and last saw the issue, as a date and time in UTC.
  • A View in Sentry button that opens the issue in Sentry in a new tab, where you can see stack traces and resolve or ignore it.

When you resolve or ignore an issue in Sentry, it leaves the list at the next refresh.

To switch to another Sentry project, choose it in Sentry Project. The choice is part of the page address, for example /<company>/<project>/logging/?sentry_project=android-app, so you can bookmark one project's issues.

Troubleshooting

The page says "No Sentry projects configured"

The token, the organization slug or the list of Sentry projects is missing. Click Configure Sentry in Settings → Build → Logging on the page and finish Steps 2 and 3.

"Invalid Sentry auth token. Check your token has the org:read, project:read and event:read scopes."

Sentry refused the token when Helm searched your projects. The token may have been deleted in Sentry, may be missing a read scope, or may have been pasted with a missing character. Create a new token as in Step 1, paste it into Sentry Auth Token, and click Save Changes.

"Organization not found. Check your org slug."

The Sentry Org Slug does not match an organization your token can see. Copy the slug from your Sentry web address, save it, and search again.

"Could not load issues: Failed to load Sentry issues: Sentry API error: 403"

Helm could list your projects but Sentry refused to send their issues, usually because the token has no read access to issues and events. Create a token with Read access to Issue & Event and save it. A 401 in the same message means the token is no longer valid.

The page says "No unresolved issues for this project."

Sentry has no unresolved issues for the Sentry project you chose. Check that Sentry Project shows the project you expect, and that your app sends its errors to that Sentry project.