- Link AppSignal to your GitLab repository, so AppSignal knows where your code lives.
- Link backtraces to revisions and lines, so every backtrace line opens the code that shipped.
- Create GitLab issues for incidents, straight from an incident’s details screen.
- Follow linked issues from the incident, so you see their GitLab status without leaving AppSignal. This is in beta.
- Link an existing GitLab issue from a note on the incident. This is in beta.
GitLab offers several ways to connect to third-party tools. AppSignal connects
using a GitLab personal access token and your project URL, which is
supported on GitLab.com, GitLab Self-Managed, and GitLab Dedicated. GitLab also
offers OAuth applications, but AppSignal does not support connecting to GitLab
over OAuth yet.
Link AppSignal to your GitLab repository
Step 1. Create a GitLab personal access token
- Sign in to GitLab and go to your user Settings.
- In the left sidebar, select Access tokens, then open Personal access tokens (
https://gitlab.com/-/user_settings/personal_access_tokenson GitLab.com). - Select Add new token. GitLab lets you create either a fine-grained or a legacy personal access token. Choose legacy, because its scopes map directly to what AppSignal needs.
- Fill in:
- Token name:
AppSignal - Expiration date: pick a date that matches your organization’s policy.
- Scopes: select
read_api,read_repository, andapi. AppSignal needs all three.
- Token name:
- Select Create personal access token and copy the token immediately. GitLab only shows it once.
Fine-grained tokens may also work, but their resource permissions are far more
granular and it is not obvious which combination to select. We’re planning to
move this integration to GitLab OAuth applications, the more recent way to
connect third-party tools to GitLab.
Step 2. Add the integration in AppSignal
- In AppSignal, open the app you want to connect.
- Go to App settings → Integrations. Under Personal issue tracker integrations, select Configure next to GitLab.
- Fill in the form:
- Token: paste the personal access token you created in Step 1. The field’s hint names the scope AppSignal needs.
- GitLab URL: the full URL to the GitLab project, for example
https://gitlab.com/your-namespace/your-project. For GitLab Self-Managed, use your instance hostname, e.g.https://gitlab.example.com/your-group/your-project.
- Select Create integration.
Step 3. Repeat for each user
Because this is a personal integration, every teammate who wants source links, backtrace links, or issue creation to work in their own AppSignal account must repeat Steps 1 and 2 with their own GitLab token.Link backtraces to revisions and lines
Codebases change constantly, so a backtrace is most useful when it points at the revision that was deployed when the error happened. Connecting GitLab fills in the Repo URL for your app, so you don’t have to set it by hand. You can confirm it under App settings → General, where the field holds your GitLab project URL. AppSignal detects the provider from that URL and builds the matching backtrace and comparison links. Once deploy markers report the deployedrevision, AppSignal links each backtrace line to the matching revision, path, and line in your GitLab repository, so you can go from an error to the code that shipped it. For the full setup, see the backtrace links documentation.
Create GitLab issues for incidents
AppSignal does not create GitLab issues automatically, to prevent story-overload. To create one for an error incident:- Open the error incident’s details screen.
- In the Actions panel, select Send to GitLab.
api scope alongside the read scopes, described in Step 1.
Follow linked issues from the incident
The Actions panel shows a button for every linked GitLab issue, labeled View #123 in GitLab. Each button shows the issue’s status as a badge:- Premium and Ultimate: the status as GitLab names it, such as To do or a custom status like In review.
- Free: Open or Closed.

- A new issue gets its badge shortly after you send it to GitLab, once GitLab tells AppSignal about it.
- Issues sent to GitLab before this feature show no badge until they next change in GitLab.
- The logbook doesn’t show an issue’s first status, because there’s no earlier status to compare it with.
- Badges work for one GitLab project per app. If you and your teammates connect different projects, only issues in the project saved last show a badge.
Turn on status updates
GitLab sends status changes to AppSignal through a webhook on your GitLab project. AppSignal adds it when you save the integration. If you set up the integration before two-way sync was available to your organization, save it again:- Go to App settings → Integrations, and select Configure next to GitLab.
- Select Update integration. If the integration is new, select Create integration.
Link an existing GitLab issue
To link a GitLab issue that already exists, open the incident’s Summary tab. Write a note in the Logbook box with the issue’s URL, such ashttps://gitlab.com/your-namespace/your-project/-/issues/42, and select Post note.
The logbook records Linked #42 on GitLab, and the issue appears in the Actions panel. Its status badge shows once the issue next changes in GitLab. A comment alone doesn’t count.
The AppSignal MCP server links issues the same way when an AI agent writes a note on an incident.
AppSignal links an issue only when all of the following are true. Otherwise, it skips the URL, and the note still posts.
- You’ve added the GitLab integration to the app yourself. AppSignal looks up the issue with your token.
- The issue is in the GitLab project you connected to the app, and your token can read it.
- The note has the issue’s full URL, with
/-/issues/or/-/work_items/in it. References such as#42oryour-group/your-project#42aren’t linked, and neither are merge request URLs. - The issue isn’t linked to the incident yet. Editing the note doesn’t create duplicates.
Assign people to linked issues from the incident
When you assign or unassign someone on an incident, AppSignal does the same on its linked GitLab issues. People assigned directly on GitLab stay assigned. Changing assignees on GitLab doesn’t change the incident. This works wherever you change assignees: the incident page, Assigned issues, Slack, or the AppSignal MCP server.
AppSignal assigns and unassigns people on the linked GitLab issue.
- They’ve added the GitLab integration to the app with their own token. AppSignal finds their GitLab account through it.
- They have access to the GitLab project.
- Your GitLab plan allows another assignee on the issue. To learn more about GitLab plan limits, see Multiple assignees for issues in the GitLab docs.
- Unassigning someone without a GitLab token for the app leaves them assigned on GitLab, and the logbook doesn’t record it.
- On GitLab, the change shows the name of the person whose token AppSignal used. AppSignal tries tokens in this order: the person who made the change, the people being assigned or unassigned, then whoever linked or created the issue.
Switch projects or remove the integration
- Switching to another GitLab project: save the integration with the new project’s URL. AppSignal moves its webhook to the new project. You need the Maintainer or Owner role on the new project.
- Removing the integration: AppSignal keeps the webhook while anyone else on the app still uses the integration. It removes the webhook when the last person removes it.
Deploy markers from GitLab CI/CD
To report deployments to AppSignal from a GitLab CI/CD pipeline, see the deploy markers documentation for the recommendedrevision config option approach, or the Markers API example if your stack does not include an AppSignal integration.
Troubleshooting
AppSignal says the token doesn’t have the api scope. AppSignal needsapi to create issues. GitLab doesn’t let you edit a token’s scopes. Create a new legacy token with read_api, read_repository, and api, and save it in AppSignal.
Sending an incident to GitLab fails.
The token may not have the api scope. AppSignal can’t check this for tokens saved before it started checking scopes, or on GitLab before 15.5. Create a new token with all three scopes and update the integration in AppSignal.
Linked issues show no status badge.
Confirm the GitLab project has the AppSignal webhook, under Settings → Webhooks in GitLab. If it’s missing, a Maintainer saves the integration again, as in Turn on status updates.
AppSignal couldn’t remove its webhook.
A Maintainer of the GitLab project can delete it under Settings → Webhooks in GitLab.
AppSignal reports the GitLab integration as invalid.
Check which scopes the token actually has. read_registry and read_repository sit next to each other in GitLab’s scope list, and a token that grants read_registry instead of read_api cannot read your project.
Source links in AppSignal don’t open the correct file.
In AppSignal, go to App settings → Integrations and select Configure next to GitLab. Confirm the GitLab URL points to the project root (e.g. https://gitlab.com/namespace/project), not to a subpath, branch, or .git URL.