We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8430bbf commit 87618d3Copy full SHA for 87618d3
src/recommendationservice/recommendation_server.py
@@ -23,6 +23,9 @@
23
from openfeature import api
24
from openfeature.contrib.provider.flagd import FlagdProvider
25
26
+# TODO: once openfeature otel hook for python is released, this will work
27
+# from openfeature.contrib.hooks.otel import TracingHook
28
+
29
# Local
30
import logging
31
import demo_pb2
@@ -121,6 +124,8 @@ def must_map_env(key: str):
121
124
def check_feature_flag(flag_name: str):
122
125
# Initialize OpenFeature
123
126
client = api.get_client()
127
+ # TODO: once openfeature otel hook for python is released, this will work
128
+ # api.add_hooks(TracingHook())
129
return client.get_boolean_value("recommendationServiceCacheFailure", False)
130
131
0 commit comments