Kill switch flags
Overview
This topic explains how you can use kill switch or circuit breaker flags to shut off functionality. These flags are permanent safety mechanisms that you can use to turn off non-core functionality or third-party tools in an emergency.
About kill switch flags
Kill switch flags, sometimes called circuit breaker flags, are permanent boolean flags with two variations: “Enabled” (true) and “Disabled” (false).
Kill switch flags are operational flags that control or change how your app or service operates. Often, these changes happen in response to unplanned events, such as traffic spikes or third-party service failures. You can use these flags to quickly turn off functionality when needed. You can also integrate these flags with observability or application performance management (APM) tools to automate flag shut off. To learn more, read Observability tools.
Create kill switch flags
To create a kill switch flag:
- Click Create and choose Flag. The “Create flag” dialog appears.
- Enter a unique, human-readable Name. A suggested key auto-populates from the name you enter, but you can customize it if you wish.
- (Optional) Click Edit key to update the flag key. You’ll use this key to reference the flag in your code.
- (Optional) Enter a Description of the flag. A brief, human-readable description helps your account members understand what the flag is for.
- (Optional) Click No template and select Kill switch.
- (Optional) Click on your member name to change the flag maintainer.
- (Optional) Click on the tag icon to add one or more tags.
- Click Create flag.
The flag Targeting tab appears.
After you create a flag, you can make further changes to it as needed, such as:
- updating flag variations
- updating flag targeting
- adding the flag to a view
- adding the flag to a release pipeline
- marking the flag as temporary
- marking the flag as unavailable to client-side SDKs
To learn more, read Creating new flags.
Because kill switch or circuit breaker flags are used to shut off functionality or third-party tools completely, they typically do not use complex targeting rules. Instead, they serve “Enabled” by default when targeting is on, and “Disabled” when targeting is off. To learn more about targeting, read Target with flags.
Modify the kill switch flag template
To modify your kill switch flag template:
- Click the project dropdown. The project menu appears:

- Select Project settings.
- Select Flags. The Flags settings list appears.
- In the “Flag templates section, click the pencil icon next to “Kill switch.”
- Choose Yes or No to mark all kill switch flags as temporary or permanent. Kill switch flags are usually permanent.
- In the “Variations” section, edit the flag variation Names.
- In the “Default variations” section, choose which default variations to serve when the flag is toggled On or Off.
- In the “Tags” section, type to add tags to each new flag by default.
- Click Save.
Verify that the updated default template settings are correct by navigating to the Flags list and creating a new kill switch flag.