惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
L
LangChain Blog
博客园 - Franky
美团技术团队
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
小众软件
小众软件
Y
Y Combinator Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: check diagnostics metric payloads · openclaw/opencl...
shakkernerd · 2026-05-12 · via Recent Commits to openclaw:main

@@ -373,21 +373,56 @@ describe("diagnostics-otel service", () => {

373373

attempt: 2,

374374

});

375375376-

expect(telemetryState.counters.get("openclaw.webhook.received")?.add).toHaveBeenCalled();

376+

expect(telemetryState.counters.get("openclaw.webhook.received")?.add).toHaveBeenCalledWith(1, {

377+

"openclaw.channel": "telegram",

378+

"openclaw.webhook": "telegram-post",

379+

});

377380

expect(

378381

telemetryState.histograms.get("openclaw.webhook.duration_ms")?.record,

379-

).toHaveBeenCalled();

380-

expect(telemetryState.counters.get("openclaw.message.queued")?.add).toHaveBeenCalled();

381-

expect(telemetryState.counters.get("openclaw.message.processed")?.add).toHaveBeenCalled();

382+

).toHaveBeenCalledWith(120, {

383+

"openclaw.channel": "telegram",

384+

"openclaw.webhook": "telegram-post",

385+

});

386+

expect(telemetryState.counters.get("openclaw.message.queued")?.add).toHaveBeenCalledWith(1, {

387+

"openclaw.channel": "telegram",

388+

"openclaw.source": "telegram",

389+

});

390+

expect(telemetryState.histograms.get("openclaw.queue.depth")?.record).toHaveBeenCalledTimes(2);

391+

expect(telemetryState.histograms.get("openclaw.queue.depth")?.record).toHaveBeenCalledWith(2, {

392+

"openclaw.channel": "telegram",

393+

"openclaw.source": "telegram",

394+

});

395+

expect(telemetryState.histograms.get("openclaw.queue.depth")?.record).toHaveBeenCalledWith(3, {

396+

"openclaw.lane": "main",

397+

});

398+

expect(telemetryState.counters.get("openclaw.message.processed")?.add).toHaveBeenCalledWith(1, {

399+

"openclaw.channel": "telegram",

400+

"openclaw.outcome": "completed",

401+

});

382402

expect(

383403

telemetryState.histograms.get("openclaw.message.duration_ms")?.record,

384-

).toHaveBeenCalled();

385-

expect(telemetryState.histograms.get("openclaw.queue.wait_ms")?.record).toHaveBeenCalled();

386-

expect(telemetryState.counters.get("openclaw.session.stuck")?.add).toHaveBeenCalled();

404+

).toHaveBeenCalledWith(55, {

405+

"openclaw.channel": "telegram",

406+

"openclaw.outcome": "completed",

407+

});

408+

expect(telemetryState.histograms.get("openclaw.queue.wait_ms")?.record).toHaveBeenCalledWith(

409+

10,

410+

{

411+

"openclaw.lane": "main",

412+

},

413+

);

414+

expect(telemetryState.counters.get("openclaw.session.stuck")?.add).toHaveBeenCalledTimes(1);

415+

expect(telemetryState.counters.get("openclaw.session.stuck")?.add).toHaveBeenCalledWith(1, {

416+

"openclaw.state": "processing",

417+

});

387418

expect(

388419

telemetryState.histograms.get("openclaw.session.stuck_age_ms")?.record,

389-

).toHaveBeenCalled();

390-

expect(telemetryState.counters.get("openclaw.run.attempt")?.add).toHaveBeenCalled();

420+

).toHaveBeenCalledWith(125_000, {

421+

"openclaw.state": "processing",

422+

});

423+

expect(telemetryState.counters.get("openclaw.run.attempt")?.add).toHaveBeenCalledWith(1, {

424+

"openclaw.attempt": 2,

425+

});

391426392427

const spanNames = telemetryState.tracer.startSpan.mock.calls.map((call) => call[0]);

393428

expect(spanNames).toContain("openclaw.webhook.processed");