Skip to content

Commit 8f26275

Browse files
authored
docs: fix add_hooks call in otel hooks README (#68)
Signed-off-by: Federico Bond <[email protected]>
1 parent 79b53a9 commit 8f26275

File tree

1 file changed

+2
-2
lines changed
  • hooks/openfeature-hooks-opentelemetry

1 file changed

+2
-2
lines changed

hooks/openfeature-hooks-opentelemetry/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The `TracingHook` can be set globally. This will ensure that every flag evaluati
2424
from openfeature import api
2525
from openfeature.contrib.hook.opentelemetry import TracingHook
2626

27-
api.add_hooks(TracingHook())
27+
api.add_hooks([TracingHook()])
2828
```
2929

3030
### Register Per Client
@@ -36,7 +36,7 @@ from openfeature import api
3636
from openfeature.contrib.hook.opentelemetry import TracingHook
3737

3838
client = api.get_client("my-app")
39-
client.add_hooks(TracingHook())
39+
client.add_hooks([TracingHook()])
4040
```
4141

4242
## License

0 commit comments

Comments
 (0)