Skip to content

Commit ef0dc37

Browse files
committed
Use default_value attribute
1 parent e6e2d97 commit ef0dc37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sentry_sdk/integrations/openfeature.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ def error(self, hook_context, exception, hints):
4848
# Spans support.
4949
span = sentry_sdk.get_current_span()
5050
if span:
51-
span.set_data(f"flag.{hook_context.flag_key}", hook_context.value)
51+
span.set_data(
52+
f"flag.{hook_context.flag_key}", hook_context.default_value
53+
)

0 commit comments

Comments
 (0)