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:
@ -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,
|
||||
|
||||
@ -9,6 +9,7 @@ export interface ExceptionHandlerOptions {
|
||||
name: string;
|
||||
};
|
||||
document?: string;
|
||||
additionalData?: Record<string, any>;
|
||||
user?: ExceptionHandlerUser | null;
|
||||
workspace?: ExceptionHandlerWorkspace | null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user