Messaging issues (#12041)

messageImportException
for messaging and calendar
add more context to the Sentry Exceptions

Fixes https://github.com/twentyhq/twenty/issues/11994
This commit is contained in:
Guillim
2025-05-14 18:37:42 +02:00
committed by GitHub
parent 628ba18115
commit fdc7d6c93c
7 changed files with 118 additions and 16 deletions

View File

@ -27,6 +27,10 @@ export class ExceptionHandlerSentryDriver
scope.setExtra('workspace', options.workspace);
}
if (options?.additionalData) {
scope.setExtra('additionalData', options.additionalData);
}
if (options?.user) {
scope.setUser({
id: options.user.id,

View File

@ -9,6 +9,7 @@ export interface ExceptionHandlerOptions {
name: string;
};
document?: string;
additionalData?: Record<string, any>;
user?: ExceptionHandlerUser | null;
workspace?: ExceptionHandlerWorkspace | null;
}