File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
terraform/python/ec2/adot-genai Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -98,20 +98,6 @@ export AGENT_OBSERVABILITY_ENABLED="true"
9898
9999nohup opentelemetry-instrument python3.12 server.py > /var/log/langchain-service.log 2>&1 &
100100
101- # Create log upload script
102- cat > /app/upload_logs.sh << 'LOG_EOF'
103- #!/bin/bash
104- while true; do
105- sleep 10
106- if [ -f /var/log/langchain-service.log ]; then
107- aws s3 cp /var/log/langchain-service.log s3://appsignals-genai-test/logs/${ var . test_id } /langchain-service-$(date +%%Y%%m%%d-%%H%%M%%S).log
108- fi
109- done
110- LOG_EOF
111-
112- chmod +x /app/upload_logs.sh
113- nohup /app/upload_logs.sh > /var/log/log-uploader.log 2>&1 &
114-
115101# Wait for service to be ready
116102echo "Waiting for service to be ready..."
117103for i in {1..60}; do
@@ -131,7 +117,6 @@ for i in {1..5}; do
131117 echo "[$(date)] Request $i: $message"
132118 curl -v -X POST http://localhost:8000/ai-chat -H "Content-Type: application/json" -d "{\"message\": \"$message\"}" -m 30
133119 echo "Request $i completed"
134- aws s3 cp /var/log/langchain-service.log s3://appsignals-genai-test/logs/${ var . test_id } /langchain-service-request-$i.log
135120 sleep 10
136121done
137122echo "Traffic generator completed"
You can’t perform that action at this time.
0 commit comments