Add monitoring service and database schema
- Implement monitoring service with heartbeat, lease tasks, resume tasks, and task result handling. - Create monitoring time utilities for business date calculations. - Add unit tests for date window resolution and business day handling. - Define database schema for monitoring-related tables including quotas, daily reports, and task management. - Establish migration scripts for creating and dropping monitoring tables.
This commit is contained in:
@@ -31,6 +31,9 @@ func Logger(logger *zap.Logger) gin.HandlerFunc {
|
||||
if appErr.Detail != "" {
|
||||
fields = append(fields, zap.String("app_detail", appErr.Detail))
|
||||
}
|
||||
if appErr.Cause != nil {
|
||||
fields = append(fields, zap.Error(appErr.Cause))
|
||||
}
|
||||
} else if len(c.Errors) > 0 {
|
||||
fields = append(fields, zap.String("error", c.Errors.String()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user