Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import * as Sentry from '@sentry/nextjs';
import type { Log } from '@sentry/nextjs';

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.NEXT_PUBLIC_E2E_TEST_DSN,
tunnel: `http://localhost:3031/`, // proxy server
tracesSampleRate: 1.0,
sendDefaultPii: true,
// Verify Log type is available
beforeSendLog(log: Log) {
return log;
},
});

export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as Sentry from '@sentry/nextjs';
import { Log } from '@sentry/nextjs';

Sentry.init({
environment: 'qa', // dynamic sampling bias to keep transactions
Expand All @@ -8,4 +9,8 @@ Sentry.init({
sendDefaultPii: true,
// debug: true,
integrations: [Sentry.vercelAIIntegration()],
// Verify Log type is available
beforeSendLog(log: Log) {
return log;
},
});
2 changes: 2 additions & 0 deletions packages/browser/src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export type {
ReportDialogOptions,
CaptureContext,
ExclusiveEventHintOrCaptureContext,
Log,
LogSeverityLevel,
} from '@sentry/core';

export type { BrowserOptions } from './client';
Expand Down
2 changes: 2 additions & 0 deletions packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ export type {
User,
Span,
Metric,
Log,
LogSeverityLevel,
FeatureFlagsIntegration,
ExclusiveEventHintOrCaptureContext,
CaptureContext,
Expand Down
Loading