Closed julianocosta89 closed 7 months ago
Also, it seems that the environment variables are not working properly.
I've set FLAGD_HOST
and FLAGD_PORT
, but when running the service I got the following error:
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-03-15T12:06:02.432495513+00:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:8013: Failed to connect to remote host: Connection refused"}"
Looks like it is not using the env vars.
Hi @julianocosta89, thanks for the report! This is a mistake in our docs. add_hooks
should be called with a list of hooks, like this:
api.add_hooks([TracingHook()])
As for the environment variables in the Flagd, we have not yet released the version that supports them, but we should do so very soon.
Opened https://github.com/open-feature/python-sdk-contrib/pull/68 to fix the docs.
Hello all,
I was following those steps to add the hook to the OTel demo: https://github.com/open-feature/python-sdk-contrib/tree/main/hooks/openfeature-hooks-opentelemetry#usage
But when using:
api.add_hooks(TracingHook())
I got the following error:
Then I've tried using
client.add_hooks(TracingHook())
and got the following one: