Skip to content

Commit 830910a

Browse files
authored
[Genesis] update polling /ai-chat endpoint over the course of 90s (#434)
*Issue description:* Main build for ADOT Python GenAi test case is flaky, failing most of the time: - https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/16299775127/job/46039999000 This is because metrics are usually not generated. We know that the conditions to send metrics to CloudWatch is to generate a metric after 60s have passed since the last metric was generated. Currently, we generate a metrics in a max 50 second interval, which could possibly extend to 60s if the CURL request takes too long. So this PR will change this to generate metrics over 90 seconds instead of 50 seconds to ensure we trigger sending metrics to CloudWatch. *Description of changes:* *Rollback procedure:* We can safely revert this commit if needed.
1 parent cb0280b commit 830910a

File tree

1 file changed

+1
-1
lines changed
  • terraform/python/ec2/adot-genai

1 file changed

+1
-1
lines changed

terraform/python/ec2/adot-genai/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ done
113113
# Generate traffic directly
114114
echo "Starting traffic generator..."
115115
nohup bash -c '
116-
for i in {1..5}; do
116+
for i in {1..9}; do
117117
message="What is the weather like today?"
118118
echo "[$(date)] Request $i: $message"
119119
curl -s -X POST http://localhost:8000/ai-chat \

0 commit comments

Comments
 (0)