diff --git a/CHANGELOG.md b/CHANGELOG.md index 40a7b61d10..1af53902e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/recommendationservice/recommendation_server.py b/src/recommendationservice/recommendation_server.py index c7302bcac5..1a6826d80d 100644 --- a/src/recommendationservice/recommendation_server.py +++ b/src/recommendationservice/recommendation_server.py @@ -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