Skip to content

Commit 87618d3

Browse files
committed
add stub for python otel hook
1 parent 8430bbf commit 87618d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/recommendationservice/recommendation_server.py

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
from openfeature import api
2424
from openfeature.contrib.provider.flagd import FlagdProvider
2525

26+
# TODO: once openfeature otel hook for python is released, this will work
27+
# from openfeature.contrib.hooks.otel import TracingHook
28+
2629
# Local
2730
import logging
2831
import demo_pb2
@@ -121,6 +124,8 @@ def must_map_env(key: str):
121124
def check_feature_flag(flag_name: str):
122125
# Initialize OpenFeature
123126
client = api.get_client()
127+
# TODO: once openfeature otel hook for python is released, this will work
128+
# api.add_hooks(TracingHook())
124129
return client.get_boolean_value("recommendationServiceCacheFailure", False)
125130

126131

0 commit comments

Comments
 (0)