@minecraft/diagnostics
    Preparing search index...

    Class SentryBeta

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

    Index

    Methods

    • Beta

      Parameters

      • level: SentryBreadcrumbLevel
      • message: string

        The message to add to the breadcrumb.

      • Optionalcategory: string

        The category of the breadcrumb.

      Returns void

      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/

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.

      This function can throw errors.

      SentryUninitializedError

    • Beta

      Parameters

      Returns void

      Initializes Sentry for use. This must be successfully called before any other Sentry functions are called.

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.

      This function can throw errors.

      minecraftcommon.InvalidArgumentError

      SentryAlreadyInitializedError