Inspect a request identifier
A request identifier ties a client operation to gateway and runtime evidence. Record the identifier rather than copying the whole prompt into ordinary logs.
Understand the pattern
A request identifier ties a client operation to gateway and runtime evidence. Record the identifier rather than copying the whole prompt into ordinary logs.
Interpret the evidence
Record req-014 and bounded metadata instead of logging the sensitive prompt.
A tempting mistake
A request ID is useless unless the entire prompt is public.
All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.
Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-inference-apis-009.json{
"fixture": "Fictional training data; not a live measurement.",
"request_id": "req-014",
"contains_sensitive_prompt": true,
"logging_policy": "metadata-only"
}Exit status: 0. The command completed successfully in the training fixture.
$ jq .request_id /opt/ai-lab/cases/aiops-inference-apis-009.json"req-014"
Exit status: 0. The command completed successfully in the training fixture.
$ printf '%s\n' 'log-request-id' > /home/learner/lab/aiops-inference-apis-009-decision.txt(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Follow a trace identifierTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01Review retry boundariesRetry policies need a maximum attempt count, delay and retryable failure set. Unbounded retries can amplify overload and duplicate work.Practice
- 02Follow a trace identifierA trace identifier connects spans across component boundaries. Use the shared trace ID and parent relationships to reconstruct one request path.Practice
- 03Compare batch and single requestsBatch execution has per-item outcomes. An accepted batch request does not mean every item completed successfully, so preserve item IDs and partial failure details.Practice