A flag flip shouldn't be a guessing game. With Feature Flags support in the Cocoa SDK (9.22.0+), Sentry captures the last 100 flag evaluations leading up to an error and displays them chronologically on the Issue Details page. When a flag correlates with a spike in errors, Sentry highlights it as a suspect so you're not digging through dashboards trying to figure out what changed.
You can do more than just seeing flag state at the time of the error, you can also:
- Filter issues by flag value: use the flags search keyword to find all issues where a specific flag was true or false.
- Check flag distribution: see the percentage of users receiving each flag value to understand blast radius.
- Track flag changes over time: connect a webhook from LaunchDarkly, Statsig, Unleash, or Flagsmith, and flag changes show up as vertical lines on the event chart (like releases), making it obvious when a change lines up with a new wave of errors.
- Getting started takes two lines of code: call SentrySDK.addFeatureFlag(name:result:) after each evaluation, and the SDK handles the rest.
You can find the full docs for Feature Flags on Apple here.
