trace
Provides a user-friendly trace stack into an operation that occurred in Spice. This command retrieves and displays task execution traces from the runtime.task_history table.
Usage​
spice trace [task] [flags]
task - The name of the task whose trace is requested. Supported tasks include:
accelerated_refreshai_chatai_completionsql_querynsqltool_use::document_similaritytool_use::list_datasetstool_use::sqltool_use::table_schematool_use::sample_datatool_use::sql_querytool_use::memory
These tasks are from the task column in the Spice SQL runtime.task_history table.
Flags​
--trace-idRetrieve the trace with the given trace ID (the columntrace_idfromruntime.task_history).--idRetrieve the trace with the givenidlabel (i.e. the task has a valididwithin thelabelscolumn ofruntime.task_history).--api-keySpecify the API key for authentication.
The latest trace for the task will be used if neither --trace-id nor --id is specified.
Examples​
Retrieve the trace for the last text-to-SQL operation​
spice trace nsql