Add event capturing to monitoring services
Updated the monitoring services - baselime-server and sentry-server, to capture specific events. This includes modifications in their respective fetch methods for logging these events. Also, expanded the core monitoring service to allow for event tracking.
This commit is contained in:
@@ -12,6 +12,13 @@ export class SentryServerMonitoringService implements MonitoringService {
|
||||
return Sentry.captureException(error);
|
||||
}
|
||||
|
||||
captureEvent<Extra extends Sentry.Event>(event: string, extra?: Extra) {
|
||||
return Sentry.captureEvent({
|
||||
message: event,
|
||||
...(extra ?? {}),
|
||||
});
|
||||
}
|
||||
|
||||
identifyUser(user: Sentry.User) {
|
||||
Sentry.setUser(user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user