The logic to enable the monitoring instrumentation was updated in both the Sentry and Baselime packages. This change ensures that the instrumentation is only enabled when the ENV variable 'ENABLE_MONITORING_INSTRUMENTATION' is specifically set to 'true' instead of simply checking for its existence.
Sentry Monitoring / @kit/sentry
Please set the following environment variable:
NEXT_PUBLIC_MONITORING_PROVIDER=sentry
NEXT_PUBLIC_SENTRY_DSN=your_dsn
Create the following file at the root of your project:
export * from '@kit/sentry/config/client';
Create the following file at the root of your project:
export * from '@kit/sentry/config/server';
Create the following file at the root of your project:
export * from '@kit/sentry/config/edge';
Finally, update the Next.js configuration in your next.config.js file:
import { withSentryConfig } from "@sentry/nextjs";
// wrap your Next.js configuration with the Sentry configuration
withSentryConfig(nextConfig);