Create events to mark specific points in time during your application execution. Capture additional metadata such as intermediate states and system milestones through events.

Attach an event to your trace

await trace.event({
    id: "event-id",
    name: "travel-plan-emailed",
    tags: { "email": "[email protected]" },
});

Replace ‘trace.event’ with ‘span.event’ when you are creating events within a span