File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22from typing import Any , TYPE_CHECKING
33
44from sentry_sdk .feature_flags import add_feature_flag
5- from sentry_sdk .integrations import Integration , DidNotEnable
5+ from sentry_sdk .integrations import Integration , DidNotEnable , _check_minimum_version
6+ from sentry_sdk .utils import parse_version
67
78try :
89 from statsig import statsig as statsig_module
10+ from statsig .version import __version__ as STATSIG_VERSION
911except ImportError :
1012 raise DidNotEnable ("statsig is not installed" )
1113
@@ -19,6 +21,9 @@ class StatsigIntegration(Integration):
1921 @staticmethod
2022 def setup_once ():
2123 # type: () -> None
24+ version = parse_version (STATSIG_VERSION )
25+ _check_minimum_version (StatsigIntegration , version , "statsig" )
26+
2227 # Wrap and patch evaluation method(s) in the statsig module
2328 old_check_gate = statsig_module .check_gate
2429
You can’t perform that action at this time.
0 commit comments