fix(api): increase max message size for sentry (#57080)

This commit is contained in:
Oliver Eyton-Williams
2024-11-07 12:51:02 +01:00
committed by GitHub
parent bdb08e6284
commit 9c73159f10
+1
View File
@@ -15,6 +15,7 @@ import { getRedirectParams } from '../utils/redirection';
const errorHandling: FastifyPluginCallback = (fastify, _options, done) => {
void fastify.register(fastifySentry, {
dsn: SENTRY_DSN,
maxValueLength: 8192, // the default is 250, which is too small.
// No need to initialize if DSN is not provided (e.g. in development and
// test environments)
skipInit: !SENTRY_DSN,