Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
Trace Event Commands
On this page
CREATE EVENT TRACE
The CREATE EVENT TRACE command creates a trace event.
Syntax
CREATE EVENT TRACE
event_name
[ WITH (<event_characteristic>, ...) ];Where <event_ is an key/value pair, such as:
-
Query_captures the query texttext = on -
Duration_traces all queries with runtimes over 1 secondthreshold_ ms = 1000 -
Trace_traces all queries that have failed, even when their runtimes are less thanall_ failed_ executions= on Duration_threshold_ ms
Remarks
-
The
event_andname event_keys are not case-sensitive.characteristic -
Currently,
Query_is the only usable event type.completion -
The ALTER EVENT TRACE permission is required to create trace events.
-
Since
event_key-value pairs are optional, each event trace has its own default values for a default configuration.characteristic
DROP EVENT TRACE
The DROP EVENT TRACE command drops a trace event.
Syntax
DROP EVENT TRACE event_name;Remarks
-
The
ALTER EVENT TRACEpermission is required to drop trace events.
Last modified: