Skip to main content
Use the watsonx Orchestrate ADK CLI to search for traces from your active environment and export their observations.

Searching traces

Use filters to search for traces and identify trace IDs.
BASH
After you identify the trace IDs, run orchestrate observability traces export to export the full trace data.

Exporting trace observations

Export observations for a trace from the watsonx Orchestrate observability platform. The command fetches all observations for a specific trace ID and writes them to a file or to standard output in JSON format. You must provide a time window to locate the trace. Use either --last, or both --start-time and --end-time. Use the same values that you used when you searched for the trace with orchestrate observability traces search.
In ADK version 2.20.0 and later, orchestrate observability traces export requires a time window. Commands that pass only --trace-id fail with an error. Update any scripts that use the command.
BASH
To use a relative time window instead, run:
BASH

Examples

Export a trace by using the same time window that you used to search for it:
BASH
Export a trace from the last four hours:
BASH
Save the export to a file:
BASH