ENGINEERING

Watch Sentry for new errors after a security-labeled MR merges

When a security-labeled merge request merges, this opens a timed watch on Sentry and, if new or spiking errors appear within the window, posts a regression alert to Slack tagging…

CategoryEngineering
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerGitLab webhook: security-labeled MR mergedGitLabGitLab
  • LogicRecord merge time + author, open watch window
  • ActionQuery Sentry for new or spiking issues since mergeSentrySentry
  • LogicBranch: did a qualifying issue surface?
  • OutputPost regression alert to Slack tagging the authorSlack

What it does

After a merge request carrying a security label merges to the release branch, it starts a post-deploy watch on Sentry scoped to the affected project. For the watch window it checks for newly surfaced issues or error-rate spikes, and if it sees one it raises a regression alert that links the Sentry issue back to the merged MR and tags the author.

When to use it

Use it when security fixes occasionally introduce regressions and you want a tight feedback loop tying production errors back to the exact change that shipped them — without an engineer babysitting the Sentry dashboard after every merge.

How it works

  1. 1A GitLab webhook fires when a security-labeled MR merges.
  2. 2The flow records the merge time and the MR author, then opens a watch window.
  3. 3It queries Sentry for issues first seen or spiking after the merge timestamp in the relevant project.
  4. 4A branch checks whether the window surfaced any qualifying issue.
  5. 5If so, a Slack regression alert posts with the Sentry issue link, the MR, and an @-mention of the author.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GitLabRepos, MRs, pipelines, registry.
  2. 2
    Connect SentryErrors, performance, releases.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.