OwlCyberSecurity - MANAGER
Edit File: openfeature.cpython-312.pyc
� ��/ik � � � d dl mZmZ d dlmZ d dlmZmZ d dlm Z d dl mZ erd dl mZm Z G d� d e� Z G d � de� Zy# e$ r ed� �w xY w) � )� TYPE_CHECKING�Any)�add_feature_flag)�DidNotEnable�Integration)�api)�Hook)�HookContext� HookHintszOpenFeature is not installedc � � e Zd ZdZed� � Zy)�OpenFeatureIntegration�openfeaturec �B � t j t � g�� y )N)�hooks)r � add_hooks�OpenFeatureHook� � �R/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/openfeature.py� setup_oncez!OpenFeatureIntegration.setup_once s � � � � �_�.�/�0r N)�__name__� __module__�__qualname__� identifier�staticmethodr r r r r r s � ��J��1� �1r r c � � e Zd Zd� Zd� Zy)r c �z � t |j t � r!t |j |j � y y �N)� isinstance�value�boolr �flag_key)�self�hook_context�details�hintss r �afterzOpenFeatureHook.after s) � ��g�m�m�T�*��W�-�-�w�}�}�=� +r c �z � t |j t � r!t |j |j � y y r )r � default_valuer! r r"