Skip to content

[Feature Flags] Use cases: kill switches, dynamic config, progressive rollouts#36920

Draft
annabfenske wants to merge 6 commits into
masterfrom
anna.fenske/feature-flags-docs-use-cases
Draft

[Feature Flags] Use cases: kill switches, dynamic config, progressive rollouts#36920
annabfenske wants to merge 6 commits into
masterfrom
anna.fenske/feature-flags-docs-use-cases

Conversation

@annabfenske

@annabfenske annabfenske commented May 21, 2026

Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Adds the Feature Flags Use Cases section: Kill Switches, Dynamic Configuration, and Progressive Rollouts & Canaries. Updates navigation and root overview links.

Stack: PR 5 of 5 — based on master (independent of the concepts PR stack). Cross-links to concept pages that land in PRs 1–4.

Merge instructions

Merge readiness:

  • Ready for merge

Additional notes

Can merge independently of PRs 1–4. Concept page links resolve after those PRs merge.

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label May 21, 2026
@annabfenske annabfenske force-pushed the anna.fenske/feature-flags-docs-pr-4 branch from 9be7985 to f996749 Compare May 21, 2026 17:21
@annabfenske annabfenske force-pushed the anna.fenske/feature-flags-docs-use-cases branch from 07cb5eb to 60a7539 Compare May 21, 2026 17:21
@annabfenske annabfenske changed the base branch from anna.fenske/feature-flags-docs-pr-4 to master May 22, 2026 18:43
@annabfenske annabfenske changed the title [Feature Flags] Use cases: kill switches, dynamic config, progressive rollouts (PR 5/5) [Feature Flags] Use cases: kill switches, dynamic config, progressive rollouts May 22, 2026
Adds use cases index plus kill switches, dynamic configuration, and
progressive rollouts and canaries pages. Updates navigation and overview links.

Co-authored-by: Cursor <cursoragent@cursor.com>
@annabfenske annabfenske force-pushed the anna.fenske/feature-flags-docs-use-cases branch from 60a7539 to e95070b Compare May 22, 2026 19:00
@github-actions github-actions Bot added the Images Images are added/removed with this PR label May 26, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@datadog-official

datadog-official Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/documentation | build_preview   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 4559f94 | Docs | Datadog PR Page | Give us feedback!

…e rollouts, dynamic configuration

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@annabfenske

Copy link
Copy Markdown
Contributor Author

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Automated review by Claude. AI-generated; verify before acting.

Reviewed the new Feature Flags Use Cases section. A few style-guide nits and a minor list-rendering issue — no blockers.

Reviewed 9db9a156b27d009a400f61ce5d95811d6609a184workflow run


## Next steps

Once your flag is set up, you can use it as a foundation for more advanced workflows:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Per the style guide, replace "Once" with "After".

Suggested change
Once your flag is set up, you can use it as a foundation for more advanced workflows:
After your flag is set up, you can use it as a foundation for more advanced workflows:

### Configure a progressive rollout

1. Navigate to your feature flag and open **Targeting Rules & Rollouts** for the target environment.
2. Click **Add Targeting Rule** and select **Add Rollout Steps** to create a multistep rollout

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Missing period at the end of the sentence.

Suggested change
2. Click **Add Targeting Rule** and select **Add Rollout Steps** to create a multistep rollout
2. Click **Add Targeting Rule** and select **Add Rollout Steps** to create a multistep rollout.


{{< img src="feature_flags/kill_switch_make_default.png" alt="The Variants section of the create flag form, showing Boolean variants with Make Default highlighted next to the True variant." style="width:90%;" >}}

5. Save the flag.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: The image shortcode between items 4 and 5 breaks the ordered list — many Markdown renderers restart the numbering at 1 for 5. Save the flag.. Indent the image inside item 4 (four spaces) so it becomes a continuation of that list item, and the numbering stays continuous.

For example:

4. In the **Variants** section, click **Make Default** next to the **True** variant. This sets `true` as the value served to all subjects by default.

    {{< img src="feature_flags/kill_switch_make_default.png" alt="..." style="width:90%;" >}}

5. Save the flag.


- Use a fallback of `true` so the feature stays enabled if the flag is unavailable — you don't want the feature to accidentally turn off due to a connectivity issue.
- Mark the flag as **Permanent**. Kill switches are intended to be long-lived, and marking them permanent prevents them from being flagged as [stale][2].
- Test the kill switch in Staging before relying on it in Production.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Environment names should be lowercase in prose (this matches the lowercase "production" on line 74).

Suggested change
- Test the kill switch in Staging before relying on it in Production.
- Test the kill switch in staging before relying on it in production.


{{< img src="getting_started/feature_flags/start-progressive-rollout.png" alt="Multistep progressive rollout display." style="width:100%;" >}}


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Extra blank line — collapse to a single blank line between the image and the next paragraph.


Use a kill switch when you need to turn off risky or broken functionality in seconds from Datadog, without waiting for a deploy. During incidents, that gives operations and engineering a fast path to stop customer impact while the rest of the application keeps running.


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: Double blank line between the intro paragraph and the ## Set up a kill switch heading — collapse to a single blank line.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend Images Images are added/removed with this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant