0ikddlmZmZddlmZddlmZmZ ddlm Z ddl m Z erddl m Z m Z Gdd eZGd d e Zy #e$r edwxYw) ) TYPE_CHECKINGAny)add_feature_flag) DidNotEnable Integration)api)Hook) HookContext HookHintszOpenFeature is not installedc eZdZdZedZy)OpenFeatureIntegration openfeaturecBtjtgy)N)hooks)r add_hooksOpenFeatureHookR/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/openfeature.py setup_oncez!OpenFeatureIntegration.setup_onces _./0rN)__name__ __module__ __qualname__ identifier staticmethodrrrrr r sJ11rr ceZdZdZdZy)rczt|jtr!t|j|jyyN) isinstancevalueboolrflag_key)self hook_contextdetailshintss rafterzOpenFeatureHook.afters) gmmT * W--w}} = +rczt|jtr!t|j|jyyr)r default_valuer!rr")r#r$ exceptionr&s rerrorzOpenFeatureHook.error s- l00$ 7 \22L4N4N O 8rN)rrrr'r+rrrrrs > PrrN)typingrrsentry_sdk.feature_flagsrsentry_sdk.integrationsrrrropenfeature.hookr r r ImportErrorr rrrrr1sV%5=7%; 1[1 Pd P7 5 667s AA