Skip to content

Commit

Permalink
feat: updated document-drive
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldas committed May 15, 2024
1 parent f5efd42 commit 680714f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"body-parser": "^1.20.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"document-drive": "1.0.0-experimental.4",
"document-drive": "1.0.0-experimental.7",
"document-model": "1.1.0-experimental.1",
"document-model-libs": "^1.45.0",
"dotenv": "^16.4.5",
Expand Down
9 changes: 5 additions & 4 deletions api/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion api/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export const createApp = (): { app: Express, router: express.Router } => {
}),
],
tracesSampleRate: 1.0,
ignoreErrors: [/Transmitter .+ not found/, /^Failed to fetch strands$/, /Drive with id .+ not found/],
ignoreErrors: [
/Transmitter .+ not found/,
/^Failed to fetch strands$/,
/Drive with id .+ not found/,
/Document with id .+ not found/,
],
});

app.use(Sentry.Handlers.requestHandler());
Expand Down
7 changes: 6 additions & 1 deletion api/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ if (process.env.SENTRY_DSN) {
sentry: {
dsn: process.env.SENTRY_DSN,
environment: process.env.SENTRY_ENV ?? 'dev',
ignoreErrors: [/Transmitter .+ not found/, /^Failed to fetch strands$/, /Drive with id .+ not found/],
ignoreErrors: [
/Transmitter .+ not found/,
/^Failed to fetch strands$/,
/Drive with id .+ not found/,
/Document with id .+ not found/,
],
// additional options for sentry
},
withLogRecord: true, // default false - send the log record to sentry as a context.(if its more then 8Kb Sentry will throw an error)
Expand Down

0 comments on commit 680714f

Please sign in to comment.