From 2aa6eaf20a1a0f0d8c4d20e84fee194d5d082900 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Thu, 15 Jan 2026 14:26:02 +0100 Subject: [PATCH] feat(electron): Add `startupTracingIntegration` to main process tracing --- docs/platforms/javascript/guides/electron/index.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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