Skip to main content
Tracing.disable - node__trace_events.d.ts - Node documentation
method Tracing.disable

Usage in Deno

```typescript import { type Tracing } from "node:node__trace_events.d.ts"; ```
Tracing.disable(): void
Disables this `Tracing` object. Only trace event categories _not_ covered by other enabled `Tracing` objects and _not_ specified by the `--trace-event-categories` flag will be disabled. ```js import trace_events from 'node:trace_events'; const t1 = trace_events.createTracing({ categories: ['node', 'v8'] }); const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] }); t1.enable(); t2.enable(); // Prints 'node,node.perf,v8' console.log(trace_events.getEnabledCategories()); t2.disable(); // Will only disable emission of the 'node.perf' category // Prints 'node,v8' console.log(trace_events.getEnabledCategories()); ```

Return Type

void