fix: sentry trace only Bee Desktop API (#421)

This commit is contained in:
Adam Uhlíř
2022-06-21 12:15:16 +02:00
committed by GitHub
parent f43de77294
commit 7c39e2741c
+2 -2
View File
@@ -23,8 +23,8 @@ export async function initSentry(): Promise<void> {
release: packageJson.version,
environment: config.SENTRY_ENVIRONMENT,
tunnel: tunnelAvailable ? `${config.BEE_DESKTOP_URL}/sentry` : undefined,
integrations: [new BrowserTracing({ tracingOrigins: ['localhost'] })],
tracesSampleRate: 0.3,
integrations: [new BrowserTracing({ tracingOrigins: [config.BEE_DESKTOP_URL] })],
tracesSampleRate: 0.4,
beforeSend: async (event, hint) => {
hint.attachments = []