@minecraft
    Preparing search index...

    Class Sentry

    A class that allows hooking up reporting to Sentry. See https://sentry.io/ for more information.

    Index
    • Early execution

      Parameters

      • name: string

        The name of the context.

      • Optionalcontext: 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.

      Returns void

      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/