Date of slack thread: 6/14/24
Anonymous: Does statsig support using webhook endpoints so my app can get notified any time there’s a change to a feature flag config? I’m basically looking for this LaunchDarkly feature but in statsig. I see these event webhook docs but that seems to be for a slightly different use case.
Statbot: Yes, Statsig supports the use of webhooks to notify your application when there’s a change to a feature flag config. While the documentation does not explicitly mention webhooks for feature flag config changes, it does provide information on setting up a Generic Webhook integration that can send raw events to the provided webhook URL. This integration can be enabled in your Project Settings under the Integrations tab, and you can set which events you want forwarded to your webhook using the Event Filtering dialog. These webhooks are triggered at runtime as users are being assigned to gates, experiments, and are triggering events. The events will be sent in batches in a JSON format source. If you are looking for a webhook feature that specifically notifies you of feature flag config changes, similar to LaunchDarkly’s offering, and it’s not covered in the provided documentation, it’s possible that this feature may not be supported in the same way. However, you can use the Generic Webhook integration to receive various types of events, which may include changes to feature flags if such events are available for subscription.
Statbot: Click below to mark as resolved.
Statbot: Yes, Statsig does support the use of webhooks to notify your application when there’s a change to a feature flag config. This is similar to the webhook feature you’re referring to in LaunchDarkly. In Statsig, these are referred to as “Runtime event webhooks,” which are triggered at runtime as users are being assigned to gates, experiments, and are triggering events. The events will be sent in batches in a JSON format to the provided webhook URL source. If you are looking for a specific feature similar to LaunchDarkly’s webhooks for flag changes, and it’s not covered in the event webhook documentation, it’s possible that this feature may not be documented or may not exist in the same form within Statsig. If you need further clarification on this feature, please share the link to your feature flag or experiment, and a Statsig team member can assist you directly.
Statbot: Click below to mark as resolved.
Statbot: This thread has been marked as resolved. Press below to re-open.
Statbot: Statsig does support webhook notifications for changes to feature flag configurations. The documentation mentions “Config Changes” as one of the categories of events that can be exported to your webhook. This includes changelogs for Statsig Console, which would notify you of any changes to your project’s settings, such as feature flags or experiments source. You can set up these notifications by enabling the Generic Webhook integration in your Project Settings under the Integrations tab. Once enabled, you can enter the URL of your destination webhook and select which events you want to forward, including “Config Changes” for feature flag updates source.
Statbot: Click below to mark as resolved.
Tore (Statsig): The webhook docs you linked is the right place - you’ll have to filter down to the events that you care about when that fires. Sounds like you are looking for “gate change” events: Config Change Webhooks.