get_pipeline_trace
Retrieve the complete execution trace for a single Haystack query, including component spans, timing, and failure details. Use query_id to deep-dive into a specific pipeline run.
Instructions
Retrieves the Haystack pipeline run trace including all spans for a single search history record.
Returns the execution trace for one query: every
component span with essential tags (excluding the component's input and output),
timing, and failure details. Use this to deep-dive into a
specific query run identified by its query_id (obtainable from
list_pipeline_traces or list_pipeline_search_history).
For a targeted look at one span including the input and output at one component, use
get_pipeline_trace_span_tags; for the logs, use get_pipeline_trace_logs.
:param pipeline_name: Name of the pipeline.
:param query_id: UUID of the search history query whose trace to retrieve.
Obtain this from the query_id / search_history_id field of a
list_pipeline_traces or list_pipeline_search_history response.
:returns: The pipeline trace entry including all spans or an error message.
The output is automatically stored and can be referenced in other functions.
Returns a formatted preview with an object ID (e.g., @obj_123).
Use the object store tools in combination with the object ID to view nested properties of the object.
Use the returned object ID to pass this result to other functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_id | Yes | ||
| pipeline_name | Yes |