This PR adds support for global feature flags via Bugsnag.add_feature_flag & config.add_feature_flag. These flags are added to every future event automatically, in much the same way as global metadata works vs event-specific metadata
This is useful for flags that are not per-user but toggle features on/off for everyone at once
The APIs added are:
Bugsnag.add_feature_flag(name, variant)
Bugsnag.add_feature_flags(feature_flags)
Bugsnag.clear_feature_flag(name)
Bugsnag.clear_feature_flags
Bugsnag.configure do |config|
config.add_feature_flag(name, variant)
config.add_feature_flags(feature_flags)
config.clear_feature_flag(name)
config.clear_feature_flags
end
Goal
This PR adds support for global feature flags via
Bugsnag.add_feature_flag
&config.add_feature_flag
. These flags are added to every future event automatically, in much the same way as global metadata works vs event-specific metadataThis is useful for flags that are not per-user but toggle features on/off for everyone at once
The APIs added are: