Commit 1923128
Feat/monitor event new filed (#653)
* feat(monitor): add event_duration_ms and total_duration_ms to MONITOR_EVENT logs
- Add duration tracking for enqueue, dequeue, start, and finish events
- Handle both standard and retry/timeout scenarios
- Preserve existing log fields for backward compatibility
* fix(monitor): improve duration calculation accuracy and robustness
- Use start_time for start event duration calculation to ensure consistency
- Add timestamp backfill for single message submission in task queue
- Ensure robust handling of missing timestamps
---------
Co-authored-by: [email protected] <>
Co-authored-by: Travis Tang <[email protected]>1 parent 6f32006 commit 1923128
File tree
3 files changed
+31
-3
lines changed- src/memos/mem_scheduler
- task_schedule_modules
3 files changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
| |||
745 | 751 | | |
746 | 752 | | |
747 | 753 | | |
| 754 | + | |
| 755 | + | |
748 | 756 | | |
749 | 757 | | |
750 | 758 | | |
| |||
923 | 931 | | |
924 | 932 | | |
925 | 933 | | |
| 934 | + | |
| 935 | + | |
926 | 936 | | |
927 | 937 | | |
928 | 938 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| 250 | + | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
| |||
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
121 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
| |||
0 commit comments