diff --git a/docs/platforms/javascript/guides/electron/index.mdx b/docs/platforms/javascript/guides/electron/index.mdx index 6c8ecf814382e..360f7b83b329d 100644 --- a/docs/platforms/javascript/guides/electron/index.mdx +++ b/docs/platforms/javascript/guides/electron/index.mdx @@ -54,7 +54,20 @@ import * as Sentry from "@sentry/electron/main"; Sentry.init({ dsn: "___PUBLIC_DSN___", + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for performance monitoring. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + integrations: [ + Sentry.startupTracingIntegration(), + ], + // ___PRODUCT_OPTION_END___ performance // ___PRODUCT_OPTION_START___ logs + // Enable logs to be sent to Sentry enableLogs: true, // ___PRODUCT_OPTION_END___ logs