mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +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 { inProduction, inTest, Logger } from '@n8n/backend-common';
|
||||||
import type { InstanceType } from '@n8n/constants';
|
import { type InstanceType } from '@n8n/constants';
|
||||||
import { Service } from '@n8n/di';
|
import { Service } from '@n8n/di';
|
||||||
import type { ReportingOptions } from '@n8n/errors';
|
import type { ReportingOptions } from '@n8n/errors';
|
||||||
import type { ErrorEvent, EventHint } from '@sentry/core';
|
import type { ErrorEvent, EventHint } from '@sentry/core';
|
||||||
@@ -131,7 +131,7 @@ export class ErrorReporter {
|
|||||||
dsn,
|
dsn,
|
||||||
release,
|
release,
|
||||||
environment,
|
environment,
|
||||||
tracesSampleRate: 0,
|
tracesSampleRate: inProduction ? 0.01 : 0,
|
||||||
serverName,
|
serverName,
|
||||||
beforeBreadcrumb: () => null,
|
beforeBreadcrumb: () => null,
|
||||||
beforeSend: this.beforeSend.bind(this) as NodeOptions['beforeSend'],
|
beforeSend: this.beforeSend.bind(this) as NodeOptions['beforeSend'],
|
||||||
|
|||||||
Reference in New Issue
Block a user