DEVOPS

Confirm Flag Rollout in Datadog, Then Open GitHub Cleanup Issue

For each fully rolled-out flag, checks Datadog to confirm the off-variant code path has had zero evaluations for the threshold window.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule starts the run
  • ActionList flags at 100% rolloutHTTP webhook
  • ActionQuery Datadog for off-variant evaluationsDatadogDatadog
  • LogicKeep only flags with zero off-variant hits
  • ActionOpen GitHub cleanup issue per flagGitHubGitHub
  • OutputAssign issue to code ownerGitHubGitHub

What it does

This sweep treats a flag as truly safe to remove only when telemetry agrees. For every flag at 100%, it queries Datadog for evaluations of the losing variant over the threshold window; if that path has fired zero times, it opens a GitHub issue to strip the flag.

When to use it

Use it when you've been burned by deleting a flag that still had a live code path. Pairing the flag state with real Datadog evaluation metrics means cleanup issues only land for flags that are genuinely inert.

How it works

  1. 1A daily schedule starts the run.
  2. 2An action lists flags currently serving one variant to 100% of traffic.
  3. 3For each, an action queries Datadog for off-variant evaluation counts over the window.
  4. 4A logic step keeps only flags with zero off-variant evaluations.
  5. 5An action opens a GitHub issue per qualifying flag, linking the flag key and the Datadog query.
  6. 6The output assigns the issue to the flag's code owner.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect DatadogMetrics, traces, log search.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  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.