Skip to main content
  • Snap

snap_startTrace

Description

Handler for the snap_startTrace method.

Parameters

data

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

Custom data to associate with the trace.

id

string | undefined

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

name

string

The name of the trace.

parentContext

Json | undefined

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

startTime

number | undefined

Override the start time of the trace.

tags

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

Custom tags to associate with the trace.