Available methods on the Trace instance.
trace.captureError(new Error('Something went wrong'), { userId: 123 });