diff --git a/sentry_sdk/integrations/unleash.py b/sentry_sdk/integrations/unleash.py index 6fe3164551..33b0a4b9dc 100644 --- a/sentry_sdk/integrations/unleash.py +++ b/sentry_sdk/integrations/unleash.py @@ -44,6 +44,7 @@ def sentry_get_variant(self, feature, *args, **kwargs): # variant as a boolean toggle, using the `enabled` field. flags = sentry_sdk.get_current_scope().flags flags.set(feature, enabled) + return variant UnleashClient.is_enabled = sentry_is_enabled # type: ignore