Skip to main content
  • Snap

snap_startTrace

Description

Handler for the snap_startTrace method.

Parameters

data

Record<string, boolean | number | string> | null

Custom data to associate with the trace.

id

string | null

A unique identifier when not tracing a callback. Defaults to 'default' if not provided.

name

string

The name of the trace.

parentContext

{ [prop: string]: Json; } | boolean | Json[] | number | string | null | null

The parent context of the trace. If provided, the trace will be nested under the parent trace.

startTime

number | null

Override the start time of the trace.

tags

Record<string, boolean | number | string> | null

Custom tags to associate with the trace.