You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ts-expect-error bundle analyzer requires NextConfig when Sentry is returning NextConfigFunction | NextConfigObject
111
-
exportdefaultwithBundleAnalyzer(config);
90
+
// Make sure to export sentry config as the last one - https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#apply-instrumentation-to-your-app
// we don't follow OTEL guide from Sentry https://docs.sentry.io/platforms/javascript/guides/nextjs/opentelemetry/custom-setup/ as we use Sentry just for error tracking
// we don't follow OTEL guide from Sentry https://docs.sentry.io/platforms/javascript/guides/nextjs/opentelemetry/custom-setup/ as we use Sentry just for error tracking
Copy file name to clipboardexpand all lines: apps/avatax/src/instrumentations/sentry-node.ts
+2-1
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,9 @@ import { env } from "@/env";
4
4
5
5
Sentry.init({
6
6
dsn: env.NEXT_PUBLIC_SENTRY_DSN,
7
-
enableTracing: false,
8
7
environment: env.ENV,
8
+
// we don't follow OTEL guide from Sentry https://docs.sentry.io/platforms/javascript/guides/nextjs/opentelemetry/custom-setup/ as we use Sentry just for error tracking
// Make sure to export sentry config as the last one - https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#apply-instrumentation-to-your-app
0 commit comments