Execution tracing introduces a performance overhead. This feature is primarily intended for use under the guidance of Cockroach Labs Support.
go tool trace).
To prevent disk overuse, older traces are automatically garbage collected based on a configurable storage limit.
Configuration
You can configure automatic Go execution trace capture with the following :Accessing Go execution traces
- The automatic Go execution tracer saves the captured traces to disk on each node’s file system in the . The default path is
cockroach-data/logs/executiontrace_dump. - To access these Go execution traces, you must use the node file system.
- Each file represents a single trace session, includes the
executiontrace.prefix and.outextension, and is timestamped with the session end time to support correlation with other logs and profiles. For example, the trace file could be namedexecutiontrace.2025-07-14T18_41_22.216.out. - Enabling the automatic Go execution tracer does add Go execution traces to in the
nodes/*/executiontracepaths.
Best Practices
- Trace duration should be short (e.g., 5s–15s). Shorter trace files are easier to parse and load into external tools.
- Storage limit should be generous to allow sufficient trace history. Avoid overly tight disk caps unless necessary.
- Enable tracing temporarily when troubleshooting runtime behavior or under support guidance, as it may slightly impact performance.
Performance Impact
Enabling execution tracing incurs a low overhead, estimated at 1–2% based on upstream Go benchmarks (Go blog, 2024). No additional CockroachDB-specific benchmarks are available at this time.Example
To enable 10-second traces every 15 minutes with a storage limit of8GiB, configure the following settings:

