From 4370e67747fe052db644595f6cc93c2833ca7720 Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Tue, 7 May 2024 17:25:25 +0200 Subject: [PATCH 1/2] fix(loadgenerator): use add_hooks openfeature method --- src/loadgenerator/locustfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loadgenerator/locustfile.py b/src/loadgenerator/locustfile.py index edf89ae41b..64abe8f8c2 100644 --- a/src/loadgenerator/locustfile.py +++ b/src/loadgenerator/locustfile.py @@ -70,7 +70,7 @@ # Initialize Flagd provider api.set_provider(FlagdProvider(host=os.environ.get('FLAGD_HOST', 'flagd'), port=os.environ.get('FLAGD_PORT', 8013))) -api.set_hooks([TracingHook()]) +api.add_hooks([TracingHook()]) def get_flagd_value(FlagName): # Initialize OpenFeature From 6e905d7ebf8843204c5d1e7ec931c641ea0dc80b Mon Sep 17 00:00:00 2001 From: Roger Coll Date: Tue, 7 May 2024 17:44:34 +0200 Subject: [PATCH 2/2] chore: add openfeature fix to changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe9b5353d5..2afbbe39f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ the release. ([#1553](https://github.com/open-telemetry/opentelemetry-demo/pull/1553)) * [recommendationservice] Configure feature flag evaluation tracing ([#1553](https://github.com/open-telemetry/opentelemetry-demo/pull/1553)) +* [loadgenerator] Fix feature flag hooks setter method + ([#1556](https://github.com/open-telemetry/opentelemetry-demo/pull/1556)) ## 1.9.0