Captured from feature/tracing-migrationf510940(rebased on master8284509), same Jaeger / request set / DB snapshot procedure as pre-migration. Result: names + semantic attributes preserved, traceparent intact, no orphaned spans, async/streaming paths now single traces. See post-migration/README.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
73523c6796
commit
e754e149d7
6 files changed
+1272
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Replays the #137 baseline request set against the after-capture server.
|
||||
set -u
|
||||
W=$(dirname "$0"); B=http://127.0.0.1:18080
|
||||
T=$(python3 $W/mint_jwt.py); H="Authorization: Bearer $T"
|
||||
echo "1) photos"; curl -s -o /dev/null -w "%{http_code}\n" -H "$H" "$B/photos?path=Colleen&recursive=true&limit=20"
|
||||
echo "2) memories"; curl -s -o /dev/null -w "%{http_code}\n" -H "$H" "$B/memories?path=.&recursive=true"
|
||||
echo "3) agentic"; R=$(curl -s -H "$H" -H 'Content-Type: application/json' -d '{"file_path":"Photo06172345.jpg","backend":"local"}' "$B/insights/generate/agentic"); echo "$R"
|
||||
JOB=$(echo "$R" | jq -r '.job_id // empty')
|
||||
if [ -n "$JOB" ]; then
|
||||
for i in $(seq 1 120); do S=$(curl -s -H "$H" "$B/insights/generation/status?job_id=$JOB" | jq -r .status); [ "$S" != "running" ] && [ "$S" != "pending" ] && break; sleep 5; done
|
||||
echo " job $JOB -> $S"
|
||||
fi
|
||||
echo "4) chat stream"; curl -sN -H "$H" -H 'Content-Type: application/json' -d '{"file_path":"Photo06172345.jpg","user_message":"What was I wearing in this photo?","backend":"local"}' "$B/insights/chat/stream" > $W/chat.sse; echo " deltas=$(grep -c '^event: text' $W/chat.sse) done=$(grep -c '^event: done' $W/chat.sse) errors=$(grep -c '^event: error' $W/chat.sse)"
|
||||
echo "5) traceparent probe"; curl -s -o /dev/null -w "%{http_code}\n" -H "$H" -H 'traceparent: 00-11111111111111111111111111111111-2222222222222222-01' "$B/photos?path=Colleen&recursive=true&limit=5"
|
||||
Reference in new issue
Block a user