GPUContext

Adds GPU device context to events. (default)

Adds GPU device context to events.

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

Copied
interface GPUContextOptions {
  /**
   * How much GPU information to request from Electron `app.getGPUInfo` API.
   * `complete` can take much longer to resolve so the default is `basic`.
   * - 'basic': Usually only the `vendor_id` and `id` but some platforms supply more.
   * - 'complete': More detailed information including full names and driver_version.
   *
   * @default 'basic'
   */
  infoLevel: "basic" | "complete";
}

To get complete GPU information, set infoLevel to complete:

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

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [
    Sentry.gpuContextIntegration({
      infoLevel: "complete",
    }),
  ],
});
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").