Update sentry context

This commit is contained in:
2022-03-12 15:33:45 +03:00
parent 924a57c09f
commit 1fad9f9525

View File

@@ -199,6 +199,7 @@ export async function createApprovedBot(token: string, state: BotState): Promise
Sentry.captureException(e, { Sentry.captureException(e, {
extra: { extra: {
message: data.current, message: data.current,
bookId,
} }
}) })
} }
@@ -228,6 +229,8 @@ export async function createApprovedBot(token: string, state: BotState): Promise
Sentry.captureException(e, { Sentry.captureException(e, {
extra: { extra: {
message: data.current, message: data.current,
bookId,
page,
} }
}); });
} }
@@ -262,6 +265,7 @@ export async function createApprovedBot(token: string, state: BotState): Promise
Sentry.captureException(e, { Sentry.captureException(e, {
extra: { extra: {
message: data.current, message: data.current,
authorId,
} }
}) })
} }
@@ -291,6 +295,8 @@ export async function createApprovedBot(token: string, state: BotState): Promise
Sentry.captureException(e, { Sentry.captureException(e, {
extra: { extra: {
message: data.current, message: data.current,
authorId,
page,
} }
}); });
} }