Skip to content

Commit 9c73159

Browse files
fix(api): increase max message size for sentry (freeCodeCamp#57080)
1 parent bdb08e6 commit 9c73159

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/src/plugins/error-handling.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { getRedirectParams } from '../utils/redirection';
1515
const errorHandling: FastifyPluginCallback = (fastify, _options, done) => {
1616
void fastify.register(fastifySentry, {
1717
dsn: SENTRY_DSN,
18+
maxValueLength: 8192, // the default is 250, which is too small.
1819
// No need to initialize if DSN is not provided (e.g. in development and
1920
// test environments)
2021
skipInit: !SENTRY_DSN,

0 commit comments

Comments
 (0)