From 708388dce9b4ef0b1215f599bc6d6fef63137870 Mon Sep 17 00:00:00 2001 From: Pierre Tessier Date: Fri, 2 Jun 2023 09:54:08 -0400 Subject: [PATCH] [loadgenerator] fix recommendations url (#913) * fix recommendations url Signed-off-by: Pierre Tessier * fix recommendations url Signed-off-by: Pierre Tessier --------- Signed-off-by: Pierre Tessier --- CHANGELOG.md | 2 ++ src/loadgenerator/locustfile.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d415627b3..f537ecc4ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ release. ([#904](https://github.com/open-telemetry/opentelemetry-demo/pull/904)) * [featureflagservice] Bump OTP version to 26.0 ([#903](https://github.com/open-telemetry/opentelemetry-demo/pull/903)) +* [loadgenerator] fix redirect on recommendations load + ([#913](https://github.com/open-telemetry/opentelemetry-demo/pull/913)) ## 1.4.0 diff --git a/src/loadgenerator/locustfile.py b/src/loadgenerator/locustfile.py index b0a8dc1804..20264bd788 100644 --- a/src/loadgenerator/locustfile.py +++ b/src/loadgenerator/locustfile.py @@ -67,7 +67,7 @@ def get_recommendations(self): params = { "productIds": [random.choice(products)], } - self.client.get("/api/recommendations/", params=params) + self.client.get("/api/recommendations", params=params) @task(3) def get_ads(self):