AdditionalContext

Adds additional device context to events. (default)

Adds additional device context to events.

This integration takes a number of options, which all default to true:

Copied
interface AdditionalContextOptions {
  screen: 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,
    }),
  ],
});
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").