Skip to content

Commit

Permalink
Move instrumentation to src folder (#2691)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge authored Jan 8, 2025
1 parent ae99f87 commit c5f374f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/gitbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@gitbook/react-openapi": "workspace:*",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-popover": "^1.0.7",
"@sentry/nextjs": "^8.47.0",
"@sentry/nextjs": "8.35.0",
"@sindresorhus/fnv1a": "^3.1.0",
"@tailwindcss/container-queries": "^0.1.1",
"@tailwindcss/typography": "^0.5.10",
Expand Down
4 changes: 1 addition & 3 deletions packages/gitbook/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
browserApiErrorsIntegration,
globalHandlersIntegration,
httpContextIntegration,
browserSessionIntegration,
} from '@sentry/nextjs';

const dsn = process.env.SENTRY_DSN;
Expand All @@ -31,9 +30,8 @@ if (dsn) {
browserApiErrorsIntegration(),
globalHandlersIntegration(),
httpContextIntegration(),
browserSessionIntegration(),
],
sampleRate: 0.1,
sampleRate: 0.5,
enableTracing: false,
beforeSendTransaction: () => {
return null;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (dsn) {
dsn,
release: process.env.SENTRY_RELEASE,

sampleRate: 0.1,
sampleRate: 0.5,

// Disable tracing as it creates additional requests in an env where subrequests are limited.
enableTracing: false,
Expand Down

0 comments on commit c5f374f

Please sign in to comment.