Add Sentry and Baselime packages in the monitoring section
This commit introduces Sentry and Baselime packages into the monitoring section, complete with associated dependencies and scripts. These changes also reflect necessary updates to the 'pnpm-lock.yaml' file to account for these new dependencies.
This commit is contained in:
35
packages/monitoring/sentry/README.md
Normal file
35
packages/monitoring/sentry/README.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Sentry Monitoring / @kit/sentry
|
||||
|
||||
Please set the following environment variable:
|
||||
|
||||
```
|
||||
MONITORING_INSTRUMENTATION_PROVIDER=sentry
|
||||
NEXT_PUBLIC_SENTRY_DSN=your_dsn
|
||||
```
|
||||
|
||||
Create the following file at the root of your project:
|
||||
|
||||
```tsx title="sentry.client.config.ts"
|
||||
export * from '@kit/sentry/config/client';
|
||||
```
|
||||
|
||||
Create the following file at the root of your project:
|
||||
|
||||
```tsx title="sentry.server.config.ts"
|
||||
export * from '@kit/sentry/config/server';
|
||||
```
|
||||
|
||||
Create the following file at the root of your project:
|
||||
|
||||
```tsx title="sentry.edge.config.ts"
|
||||
export * from '@kit/sentry/config/edge';
|
||||
```
|
||||
|
||||
Finally, update the Next.js configuration in your `next.config.js` file:
|
||||
|
||||
```tsx title="next.config.mjs"
|
||||
import { withSentryConfig } from "@sentry/nextjs";
|
||||
|
||||
// wrap your Next.js configuration with the Sentry configuration
|
||||
withSentryConfig(nextConfig);
|
||||
```
|
||||
Reference in New Issue
Block a user