@minecraft
    正在准备搜索索引...

    类 Sentry

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

    索引
    • 早期执行

      参数

      • name: string

        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.

      返回 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/