enhance(backend): improve sentry integration

This commit is contained in:
syuilo
2024-06-07 13:15:37 +09:00
parent 00157864e9
commit 8592716139
2 changed files with 8 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ export class ApiCallService implements OnApplicationShutdown {
if (this.config.sentryForBackend) {
Sentry.captureMessage(`Internal error occurred in ${ep.name}: ${err.message}`, {
level: 'error',
user: {
id: userId,
},