Skip to main content
Initialize the Trace instance with the following options:
OptionTypeDefaultDescription
apiKeystringrequiredYour Trace API Key found in the dashboard.
environmentstring'development'Current environment name (e.g., 'production').
sampleRatenumber1.0Percentage of events to capture (0.0 to 1.0).