mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 01:26:44 +00:00
perf(core): Enable Sentry tracing (#18192)
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user