From 6c2d2c5031cf50f25e760f77a7fd5fea3284428f Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sun, 17 Mar 2024 12:13:27 +1100 Subject: [PATCH] docs: fix add_hooks call in otel hooks README Signed-off-by: Federico Bond --- hooks/openfeature-hooks-opentelemetry/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/openfeature-hooks-opentelemetry/README.md b/hooks/openfeature-hooks-opentelemetry/README.md index dbc77fe3..7feae3f6 100644 --- a/hooks/openfeature-hooks-opentelemetry/README.md +++ b/hooks/openfeature-hooks-opentelemetry/README.md @@ -24,7 +24,7 @@ The `TracingHook` can be set globally. This will ensure that every flag evaluati from openfeature import api from openfeature.contrib.hook.opentelemetry import TracingHook -api.add_hooks(TracingHook()) +api.add_hooks([TracingHook()]) ``` ### Register Per Client @@ -36,7 +36,7 @@ from openfeature import api from openfeature.contrib.hook.opentelemetry import TracingHook client = api.get_client("my-app") -client.add_hooks(TracingHook()) +client.add_hooks([TracingHook()]) ``` ## License