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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
G
Google Developers Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Check Point Blog
J
Java Code Geeks
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
量子位
A
About on SuperTechFans
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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
fix(diagnostics): drop snake case otel ids (#72645) · ope...
Lion0710 · 2026-05-23 · via Recent Commits to openclaw:main

File tree

  • extensions/diagnostics-otel/src

Original file line numberDiff line numberDiff line change

@@ -97,6 +97,7 @@ Docs: https://docs.openclaw.ai

9797

- Control UI/logs: strip ANSI escape sequences from displayed Gateway log messages so color codes no longer appear as raw text. Fixes #64399. Thanks @guguangxin-eng.

9898

- Docker: pre-create the workspace and auth-profile config mount points with `node` ownership so first-run named volumes do not start root-owned. Fixes #85076. Thanks @Noerr.

9999

- Telegram: pass configured markdown table mode through outbound markdown chunking so chunked sends render tables consistently. Fixes #85085. Thanks @ShuaiHui.

100+

- Diagnostics/OTel: drop snake_case diagnostic id attributes alongside camelCase ids so exported telemetry cannot leak run, session, message, chat, trace, or tool-call identifiers. (#72645) Thanks @Lion0710.

100101

- CLI/update: preserve managed Gateway service environment during package cutovers so macOS LaunchAgent repair/restart reads the pre-update service state instead of caller shell state. (#83026)

101102

- Agents/providers: honor per-model `api` and `baseUrl` overrides in custom provider auth hooks and transport selection. Fixes #80487. (#80488) Thanks @huveewomg.

102103

- Gateway/restart: eager-load the lifecycle runtime before in-place upgrade signal handling so package replacement does not deadlock restart imports. (#84890) Thanks @myps6415.

Original file line numberDiff line numberDiff line change

@@ -395,6 +395,62 @@ describe("diagnostics-otel service", () => {

395395

}

396396

});

397397
398+

test("drops camelCase and snake_case diagnostic id log attributes before export", async () => {

399+

const emitCall = await emitAndCaptureLog({

400+

level: "INFO",

401+

message: "diagnostic id attributes",

402+

attributes: {

403+

callId: "call-camel",

404+

call_id: "call-snake",

405+

chatId: "chat-camel",

406+

chat_id: "chat-snake",

407+

messageId: "message-camel",

408+

message_id: "message-snake",

409+

parentSpanId: "parent-camel",

410+

parent_span_id: "parent-snake",

411+

runId: "run-camel",

412+

run_id: "run-snake",

413+

sessionId: "session-camel",

414+

session_id: "session-snake",

415+

sessionKey: "session-key-camel",

416+

session_key: "session-key-snake",

417+

spanId: "span-camel",

418+

span_id: "span-snake",

419+

toolCallId: "tool-camel",

420+

tool_call_id: "tool-snake",

421+

traceId: "trace-camel",

422+

trace_id: "trace-snake",

423+

provider: "openai",

424+

},

425+

});

426+
427+

expect(emitCall.attributes?.["openclaw.provider"]).toBe("openai");

428+

for (const key of [

429+

"openclaw.callId",

430+

"openclaw.call_id",

431+

"openclaw.chatId",

432+

"openclaw.chat_id",

433+

"openclaw.messageId",

434+

"openclaw.message_id",

435+

"openclaw.parentSpanId",

436+

"openclaw.parent_span_id",

437+

"openclaw.runId",

438+

"openclaw.run_id",

439+

"openclaw.sessionId",

440+

"openclaw.session_id",

441+

"openclaw.sessionKey",

442+

"openclaw.session_key",

443+

"openclaw.spanId",

444+

"openclaw.span_id",

445+

"openclaw.toolCallId",

446+

"openclaw.tool_call_id",

447+

"openclaw.traceId",

448+

"openclaw.trace_id",

449+

]) {

450+

expect(Object.hasOwn(emitCall.attributes ?? {}, key)).toBe(false);

451+

}

452+

});

453+
398454

test("records message-flow metrics and spans", async () => {

399455

const service = createDiagnosticsOtelService();

400456

const ctx = createOtelContext(OTEL_TEST_ENDPOINT, { traces: true, metrics: true, logs: true });

Original file line numberDiff line numberDiff line change

@@ -32,15 +32,25 @@ import {

3232

const DEFAULT_SERVICE_NAME = "openclaw";

3333

const DROPPED_OTEL_ATTRIBUTE_KEYS = new Set([

3434

"openclaw.callId",

35+

"openclaw.call_id",

3536

"openclaw.chatId",

37+

"openclaw.chat_id",

3638

"openclaw.messageId",

39+

"openclaw.message_id",

3740

"openclaw.parentSpanId",

41+

"openclaw.parent_span_id",

3842

"openclaw.runId",

43+

"openclaw.run_id",

3944

"openclaw.sessionId",

45+

"openclaw.session_id",

4046

"openclaw.sessionKey",

47+

"openclaw.session_key",

4148

"openclaw.spanId",

49+

"openclaw.span_id",

4250

"openclaw.toolCallId",

51+

"openclaw.tool_call_id",

4352

"openclaw.traceId",

53+

"openclaw.trace_id",

4454

]);

4555

const LOW_CARDINALITY_VALUE_RE = /^[A-Za-z0-9_.:-]{1,120}$/u;

4656

const MAX_OTEL_CONTENT_ATTRIBUTE_CHARS = 4 * 1024;