Agentic Data Plane

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.

Usage

rpk ai trace span get [flags]

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

--start-time

string

the trace’s start time (RFC 3339), so the server can skip older history.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.