AdditionalContext

Adds additional device context to events. (default)

Adds additional device context to events.

Copied
interface AdditionalContextOptions {
  /**
   * Capture dimensions and resolution of the primary display
   * @default true
   */
  screen: boolean;
  /**
   * Capture device model and manufacturer.
   * No supported on Linux.
   * @default false
   */
  deviceModelManufacturer: boolean;
}

To disable specific context items, set them as false:

Copied
import * as Sentry from "@sentry/electron/main";

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [
    Sentry.additionalContextIntegration({
      screen: false,
    }),
  ],
});
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").