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:
giancarlo
2024-04-25 15:03:20 +07:00
parent a0fe5a3794
commit e8d34ce77e
3 changed files with 54 additions and 1 deletions

View File

@@ -14,6 +14,16 @@ export abstract class MonitoringService {
extra?: Extra,
): unknown;
/**
* Track an event
* @param event
* @param extra
*/
abstract captureEvent<Extra extends object>(
event: string,
extra?: Extra,
): unknown;
/**
* Identify a user in the monitoring service - used for tracking user actions
* @param info