Uptrace is compatible with the Sentry SDK, so you can use @sentry/browser to send events to Uptrace by pointing the Sentry DSN at your Uptrace project.
Install dependencies:
npm installTo run this example, create an Uptrace project to obtain a DSN and run:
UPTRACE_DSN=https://<token>@api.uptrace.dev/<project_id> node main.mjsThen use the event id from the CLI output to find the event in the Uptrace UI.