Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/core/src/baseclient.ts>BaseClient#_prepareEvent

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
method BaseClient.prototype._prepareEvent
import { BaseClient } from "https://deno.land/x/sentry_deno@v0.2.2/packages/core/src/baseclient.ts";

Adds common information to events.

The information includes release and environment from options, breadcrumbs and context (extra, tags and user) from the scope.

Information that is already present in the event is never overwritten. For nested objects, such as the context, keys are merged.

Parameters

event: Event

The original event.

hint: EventHint

May contain additional information about the original exception.

optional
scope: Scope

A scope containing event metadata.

Returns

PromiseLike<Event | null>

A new event with more information.