Skip to content

Feat/monitor event new filed#653

Merged
tangg555 merged 3 commits intodevfrom
feat/monitor_event_new_filed
Dec 8, 2025
Merged

Feat/monitor event new filed#653
tangg555 merged 3 commits intodevfrom
feat/monitor_event_new_filed

Conversation

@glin93
Copy link
Contributor

@glin93 glin93 commented Dec 8, 2025

Description

Summary: (summary)

Fix: #(issue)

Docs Issue/PR: (docs-issue-or-pr-link)

Reviewer: @(reviewer)

Checklist:

  • I have performed a self-review of my own code | 我已自行检查了自己的代码
  • I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
  • I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
  • I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
  • I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
  • I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人

glin1993@outlook.com and others added 3 commits December 8, 2025 19:28
…_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
- 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
@tangg555 tangg555 merged commit 1923128 into dev Dec 8, 2025
40 checks passed
@glin93 glin93 deleted the feat/monitor_event_new_filed branch December 18, 2025 06:17
tianxing02 pushed a commit to tianxing02/MemOS that referenced this pull request Feb 24, 2026
* 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: glin1993@outlook.com <>
Co-authored-by: Travis Tang <travistang@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants