perf(core): Enable Sentry tracing (#18192)

This commit is contained in:
Iván Ovejero
2025-08-11 10:56:09 +02:00
committed by GitHub
parent 09caa05726
commit 80e9e6fc33

View File

@@ -1,5 +1,5 @@
import { inTest, Logger } from '@n8n/backend-common';
import type { InstanceType } from '@n8n/constants';
import { inProduction, inTest, Logger } from '@n8n/backend-common';
import { type InstanceType } from '@n8n/constants';
import { Service } from '@n8n/di';
import type { ReportingOptions } from '@n8n/errors';
import type { ErrorEvent, EventHint } from '@sentry/core';
@@ -131,7 +131,7 @@ export class ErrorReporter {
dsn,
release,
environment,
tracesSampleRate: 0,
tracesSampleRate: inProduction ? 0.01 : 0,
serverName,
beforeBreadcrumb: () => null,
beforeSend: this.beforeSend.bind(this) as NodeOptions['beforeSend'],