Field Semantics
If
requestId or traceId is missing, the SDK generates one. It does not generate conversationId because only your app knows the conversation boundary.
Recommended Pattern
For a multi-turn agent, keepconversationId stable and rotate requestId per turn:
Dashboard Debugging
Use request context to answer operational questions:Common Mistakes
- Reusing one
requestIdfor every turn in a conversation. - Omitting
conversationIdfor multi-turn agents. - Creating request context in logs but not passing it into
wrapOpenAI(...),wrap_openai(...), orwrapAnthropic(...). - Wrapping one long-lived provider client once and expecting per-request context to change later.