---
title: rpk ai trace
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: rpk/rpk-ai/rpk-ai-trace
page-component-name: agentic-data-plane
page-version: master
page-component-version: master
page-component-title: Agentic Data Plane
page-relative-src-path: rpk/rpk-ai/rpk-ai-trace.adoc
page-edit-url: https://github.com/redpanda-data/adp-docs/edit/main/modules/reference/pages/rpk/rpk-ai/rpk-ai-trace.adoc
description: Read the traces of agent runs and of calls only the AI gateway saw. <code>list</code> finds traces, <code>get</code> prints one trace's summary, <code>span list</code> its spans, and <code>span get</code> one span's content.
page-git-created-date: "2026-10-26"
page-git-modified-date: "2026-10-30"
page-generated-sources:
  - include: streaming:reference:partial$rpk-ai/rpk-ai-trace.adoc
    generator: rpk-docs
    version: null
    source: the rpk command help in redpanda-data/streaming-enterprise
page-generated-content: partial
---

# rpk ai trace

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [agentic-data-plane-full.txt](https://docs.redpanda.com/agentic-data-plane-full.txt)

<!-- Source: https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai-trace.md -->

Read the traces of agent runs and of calls only the AI gateway saw.

`list` finds traces, `get` prints one trace’s summary, `span list` its spans, and `span get` one span’s content. Listing needs `dataplane_adp_trace_list`; reading a trace needs `dataplane_adp_trace_get`, and its content is redacted where you may not read it.

> 📝 **NOTE**
>
> This command was introduced in ai version 0.2.94.

## Usage

```bash
rpk ai trace [flags]
```

## Subcommands

| Command | Description |
| --- | --- |
| [`rpk ai trace get`](https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai-trace-get/) | Read one trace and print its summary. `rpk ai trace span list` prints its spans. |
| [`rpk ai trace list`](https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai-trace-list/) | List traces of agent runs and AI gateway calls, newest first unless `--order-by` says otherwise. The filter flags build ListTraces' AIP-160 filter: values within one flag are ORed, different flags are ANDed, and `--filter` is ANDed with all of them. |
| [`rpk ai trace span`](https://docs.redpanda.com/agentic-data-plane/reference/rpk/rpk-ai/rpk-ai-trace-span/) | Read a trace’s spans (`list`, get). |

## 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. |