diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d3f0ee1af..7ea1151794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ release. * [cartservice] disable config reload ([#1312](https://github.com/open-telemetry/opentelemetry-demo/pull/1312)) +* [cartservice] fixed cartServiceFailure feature flag + ([#1313](https://github.com/open-telemetry/opentelemetry-demo/pull/1313)) * [accountingservice] Update dependencies and semconv * ([#1316](https://github.com/open-telemetry/opentelemetry-demo/pull/1316)) diff --git a/docker-compose.yml b/docker-compose.yml index 600d8db5f6..55aefe0669 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -91,6 +91,7 @@ services: - "${CART_SERVICE_PORT}" environment: - CART_SERVICE_PORT + - FEATURE_FLAG_GRPC_SERVICE_ADDR - REDIS_ADDR - OTEL_EXPORTER_OTLP_ENDPOINT - OTEL_RESOURCE_ATTRIBUTES diff --git a/src/cartservice/src/featureflags/FeatureFlagHelper.cs b/src/cartservice/src/featureflags/FeatureFlagHelper.cs index 7256d8dcb2..ded6659fe5 100644 --- a/src/cartservice/src/featureflags/FeatureFlagHelper.cs +++ b/src/cartservice/src/featureflags/FeatureFlagHelper.cs @@ -30,10 +30,6 @@ public async Task GenerateCartError() { return false; } - if (Random.Next(10) != 1) - { - return false; - } var getFlagRequest = new GetFlagRequest { Name = "cartServiceFailure" }; var getFlagResponse = await _featureFlagServiceClient.GetFlagAsync(getFlagRequest);