[Feature Flags] Use cases: kill switches, dynamic config, progressive rollouts#36920
[Feature Flags] Use cases: kill switches, dynamic config, progressive rollouts#36920annabfenske wants to merge 6 commits into
Conversation
9be7985 to
f996749
Compare
07cb5eb to
60a7539
Compare
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>
60a7539 to
e95070b
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
…e rollouts, dynamic configuration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
/review |
There was a problem hiding this comment.
🤖 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 9db9a156b27d009a400f61ce5d95811d6609a184 — workflow run
|
|
||
| ## Next steps | ||
|
|
||
| Once your flag is set up, you can use it as a foundation for more advanced workflows: |
There was a problem hiding this comment.
Style: Per the style guide, replace "Once" with "After".
| 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 |
There was a problem hiding this comment.
Style: Missing period at the end of the sentence.
| 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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Style: Environment names should be lowercase in prose (this matches the lowercase "production" on line 74).
| - 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%;" >}} | ||
|
|
||
|
|
There was a problem hiding this comment.
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. | ||
|
|
||
|
|
There was a problem hiding this comment.
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>
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:
Additional notes
Can merge independently of PRs 1–4. Concept page links resolve after those PRs merge.