rpk ai trace span get
Print one span of a trace: its timing, tokens, policy decisions and error, then its content. A model call shows its system prompt, last user message and reply; a tool call shows its arguments and result.
Span ids come from trace span list --ids. A span you may not read shows only
its timing and usage. -o json and -o yaml print the TraceSpan.
| This command was introduced in ai version 0.2.100. |
Examples
This section provides examples of how to use rpk ai trace span get.
rpk ai trace span get 4623d104a1415a48987e2659e9a9131b b25d357c25648b20
rpk ai trace span get 4623d104a1415a48987e2659e9a9131b b25d357c25648b20 -o json | jq -r .tool_result
Flags
| Value | Type | Description |
|---|---|---|
|
string |
the trace’s start time (RFC 3339), so the server can skip older history. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |