PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /proc/self/root/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : //proc/self/root/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/unleash.py |
from functools import wraps
from typing import Any
from sentry_sdk.feature_flags import add_feature_flag
from sentry_sdk.integrations import Integration, DidNotEnable
try:
from UnleashClient import UnleashClient
except ImportError:
raise DidNotEnable("UnleashClient is not installed")
class UnleashIntegration(Integration):
identifier = "unleash"
@staticmethod
def setup_once():
# type: () -> None
# Wrap and patch evaluation methods (class methods)
old_is_enabled = UnleashClient.is_enabled
@wraps(old_is_enabled)
def sentry_is_enabled(self, feature, *args, **kwargs):
# type: (UnleashClient, str, *Any, **Any) -> Any
enabled = old_is_enabled(self, feature, *args, **kwargs)
# We have no way of knowing what type of unleash feature this is, so we have to treat
# it as a boolean / toggle feature.
add_feature_flag(feature, enabled)
return enabled
UnleashClient.is_enabled = sentry_is_enabled # type: ignore