File tree 2 files changed +7
-15
lines changed
2 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,11 @@ def setup_once():
16
16
17
17
18
18
def flag_error_processor (event , exc_info ):
19
- try :
20
- scope = sentry_sdk .get_current_scope ()
21
- event ["contexts" ]["flags" ] = {"values" : scope .flags .get ()}
22
- return event
23
- except Exception :
24
- logger .exception ("Flag serialization failed" )
19
+ scope = sentry_sdk .get_current_scope ()
20
+ event ["contexts" ]["flags" ] = {"values" : scope .flags .get ()}
21
+ return event
25
22
26
23
27
24
def flag_pole_hook (flag : str , result : bool ):
28
- try :
29
- flags = sentry_sdk .get_current_scope ().flags
30
- flags .set (flag , result )
31
- except Exception :
32
- logger .exception ("Set flag failed" )
25
+ flags = sentry_sdk .get_current_scope ().flags
26
+ flags .set (flag , result )
Original file line number Diff line number Diff line change 26
26
from sentry .features .rollout import in_random_rollout
27
27
from sentry .utils import metrics
28
28
from sentry .utils .db import DjangoAtomicIntegration
29
-
30
- # from sentry.utils.flag import FlagPoleIntegration
29
+ from sentry .utils .flag import FlagPoleIntegration
31
30
from sentry .utils .rust import RustInfoIntegration
32
31
33
32
# Can't import models in utils because utils should be the bottom of the food chain
@@ -466,8 +465,7 @@ def flush(
466
465
RustInfoIntegration (),
467
466
RedisIntegration (),
468
467
ThreadingIntegration (propagate_hub = True ),
469
- # Temporarily disabled.
470
- # FlagPoleIntegration(),
468
+ FlagPoleIntegration (),
471
469
],
472
470
** sdk_options ,
473
471
)
You can’t perform that action at this time.
0 commit comments