We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0066faa commit 928350aCopy full SHA for 928350a
sentry_sdk/integrations/openfeature.py
@@ -6,6 +6,8 @@
6
try:
7
from openfeature import api
8
from openfeature.hook import Hook
9
+ from sentry_sdk._types import Event, ExcInfo
10
+ from typing import Optional
11
12
if TYPE_CHECKING:
13
from openfeature.flag_evaluation import FlagEvaluationDetails
@@ -19,7 +21,9 @@ class OpenFeatureIntegration(Integration):
19
21
20
22
@staticmethod
23
def setup_once():
24
+ # type: () -> None
25
def error_processor(event, exc_info):
26
+ # type: (Event, ExcInfo) -> Optional[Event]
27
scope = sentry_sdk.get_current_scope()
28
event["contexts"]["flags"] = {"values": scope.flags.get()}
29
return event
0 commit comments