(actor *PID, msg Message, err any)
| 69 | } |
| 70 | |
| 71 | func defaultPanicHandler(actor *PID, msg Message, err any) { |
| 72 | actorLog.Error(context.Background(), "PANIC in actor", map[string]any{ |
| 73 | "actor_id": actor.ID, |
| 74 | "msg_kind": msg.Kind(), |
| 75 | "error": err, |
| 76 | "stack": string(debug.Stack()), |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | // SystemStats 系统统计 |
| 81 | type SystemStats struct { |