Skip to main content
createTracing - node__trace_events.d.ts - Node documentation
function createTracing

Usage in Deno

```typescript import { createTracing } from "node:node__trace_events.d.ts"; ```
createTracing(options: CreateTracingOptions): Tracing
> [!WARNING] Deno compatibility > This symbol is a non-functional stub. Creates and returns a `Tracing` object for the given set of `categories`. ```js import trace_events from 'node:trace_events'; const categories = ['node.perf', 'node.async_hooks']; const tracing = trace_events.createTracing({ categories }); tracing.enable(); // do stuff tracing.disable(); ```

Parameters

Return Type