Skip to content

Commit

Permalink
fix(loadgenerator): use add_hooks openfeature method (open-telemetry#…
Browse files Browse the repository at this point in the history
…1565)

* fix(loadgenerator): use add_hooks openfeature method

* chore: add openfeature fix to changelog

---------

Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
  • Loading branch information
2 people authored and AlexPSplunk committed Jul 10, 2024
1 parent 69c420e commit e142847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/loadgenerator/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e142847

Please sign in to comment.