Skip to content

Commit

Permalink
Update recommendation flag to match flagd configuration (open-telemet…
Browse files Browse the repository at this point in the history
  • Loading branch information
flands authored and eliasmueller committed Jul 14, 2024
1 parent 51e485a commit 9c1153b
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 @@ -13,6 +13,8 @@ the release.
([#1619](https://github.com/open-telemetry/opentelemetry-demo/pull/1619))
* [frontend] fixed default flagd port for HTTPS connections
([#1609](https://github.com/open-telemetry/opentelemetry-demo/pull/1609))
* ([recommendation] updated flag name to match flagd configuration
([#1634](https://github.com/open-telemetry/opentelemetry-demo/pull/1634))

## 1.10.0

Expand Down
2 changes: 1 addition & 1 deletion src/recommendationservice/recommendation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_product_list(request_product_ids):
request_product_ids = request_product_ids_str.split(',')

# Feature flag scenario - Cache Leak
if check_feature_flag("recommendationCache"):
if check_feature_flag("recommendationServiceCacheFailure"):
span.set_attribute("app.recommendation.cache_enabled", True)
if random.random() < 0.5 or first_run:
first_run = False
Expand Down

0 comments on commit 9c1153b

Please sign in to comment.