早期执行
The message to add to the breadcrumb.
可选category: string
The category of the breadcrumb.
Adds a breadcrumb to the next Sentry error reported. This can be useful for understanding a "trail" of events leading up to an error. See Sentry documentation for more details: https://docs.sentry.io/product/issues/issue-details/breadcrumbs/
早期执行
Adds a tag to the Sentry session. See Sentry documentation for more details: https://docs.sentry.io/platforms/javascript/enriching-events/tags/
早期执行
可选captureContext: SentryCaptureContextCaptures an exception event and send it to Sentry. Note that
you can pass not only Error objects, but also other types
of thrown objects - in that case, an attempt will be made to
serialize the object for you, and stack traces are likely to
be missing. See Sentry documentation for more details:
https://docs.sentry.io/platforms/javascript/apis/#capturing-events
早期执行
All contexts that have been added to the session, keyed by context name.
Gets all contexts that have been added to the Sentry session. See Sentry documentation for more details: https://develop.sentry.dev/sdk/foundations/envelopes/event-payloads/contexts/
早期执行
Gets the list of all session tags. See Sentry documentation for more details: https://docs.sentry.io/platforms/javascript/enriching-events/tags/
早期执行
早期执行
Removes a tag to the Sentry session. See Sentry documentation for more details: https://docs.sentry.io/platforms/javascript/enriching-events/tags/
早期执行
The name of the context.
可选context: Record<string, boolean | number | string>
The key/value data of the context, or undefined to remove
the context. Include a type key to specify the Sentry
context type when it differs from the context name.
Sets a named context on the Sentry session. Contexts are sent with every subsequent Sentry event and are useful for attaching structured data about the current state of the game or script. If a context with the same name already exists, it is replaced. If no context value is provided, the named context is removed. See Sentry documentation for more details: https://develop.sentry.dev/sdk/foundations/envelopes/event-payloads/contexts/
A class that allows hooking up reporting to Sentry. See https://sentry.io/ for more information.