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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS Blog

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
docs(diagnostics-otel): clarify genai semconv exports · o...
vincentkoc · 2026-04-26 · via Recent Commits to openclaw:main

@@ -310,7 +310,8 @@ Notes:

310310

- You can also enable the plugin with `openclaw plugins enable diagnostics-otel`.

311311

- `protocol` currently supports `http/protobuf` only. `grpc` is ignored.

312312

- Metrics include token usage, cost, context size, run duration, and message-flow

313-

counters/histograms (webhooks, queueing, session state, queue depth/wait).

313+

counters/histograms (webhooks, queueing, session state, queue depth/wait),

314+

plus GenAI token usage and model-call duration histograms.

314315

- Traces/metrics can be toggled with `traces` / `metrics` (default: on). Traces

315316

include model usage spans plus webhook/message processing spans when enabled.

316317

- Raw model/tool content is not exported by default. Use

@@ -319,6 +320,10 @@ Notes:

319320

- Set `headers` when your collector requires auth.

320321

- Environment variables supported: `OTEL_EXPORTER_OTLP_ENDPOINT`,

321322

`OTEL_SERVICE_NAME`, `OTEL_EXPORTER_OTLP_PROTOCOL`.

323+

- Set `OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental` to emit the

324+

latest experimental GenAI provider span attribute (`gen_ai.provider.name`)

325+

instead of the legacy span attribute (`gen_ai.system`). GenAI metrics always

326+

use bounded, low-cardinality semantic attributes.

322327

- Set `OPENCLAW_OTEL_PRELOADED=1` when another preload or host process already

323328

registered the global OpenTelemetry SDK. In that mode the plugin does not start

324329

or shut down its own SDK, but it still wires OpenClaw diagnostic listeners and

@@ -337,8 +342,11 @@ Model usage:

337342

- `openclaw.context.tokens` (histogram, attrs: `openclaw.context`,

338343

`openclaw.channel`, `openclaw.provider`, `openclaw.model`)

339344

- `gen_ai.client.token.usage` (histogram, GenAI semantic-conventions metric,

340-

attrs: `gen_ai.token.type` = `input`/`output`, `gen_ai.system`,

345+

attrs: `gen_ai.token.type` = `input`/`output`, `gen_ai.provider.name`,

341346

`gen_ai.operation.name`, `gen_ai.request.model`)

347+

- `gen_ai.client.operation.duration` (histogram, seconds, GenAI

348+

semantic-conventions metric, attrs: `gen_ai.provider.name`,

349+

`gen_ai.operation.name`, `gen_ai.request.model`, optional `error.type`)

342350343351

Message flow:

344352

@@ -392,11 +400,16 @@ Diagnostics internals (memory + tool loop):

392400

- `openclaw.model.usage`

393401

- `openclaw.channel`, `openclaw.provider`, `openclaw.model`

394402

- `openclaw.tokens.*` (input/output/cache_read/cache_write/total)

403+

- `gen_ai.system` by default, or `gen_ai.provider.name` when latest GenAI

404+

semantic conventions are opted in

405+

- `gen_ai.request.model`, `gen_ai.operation.name`, `gen_ai.usage.*`

395406

- `openclaw.run`

396407

- `openclaw.outcome`, `openclaw.channel`, `openclaw.provider`,

397408

`openclaw.model`, `openclaw.errorCategory`

398409

- `openclaw.model.call`

399-

- `gen_ai.system`, `gen_ai.request.model`, `gen_ai.operation.name`,

410+

- `gen_ai.system` by default, or `gen_ai.provider.name` when latest GenAI

411+

semantic conventions are opted in

412+

- `gen_ai.request.model`, `gen_ai.operation.name`,

400413

`openclaw.provider`, `openclaw.model`, `openclaw.api`,

401414

`openclaw.transport`, `openclaw.provider.request_id_hash` (bounded

402415

SHA-based hash of the upstream provider request id; raw ids are not

@@ -447,6 +460,9 @@ classes you opted into.

447460

`OTEL_EXPORTER_OTLP_ENDPOINT`.

448461

- If the endpoint already contains `/v1/traces` or `/v1/metrics`, it is used as-is.

449462

- If the endpoint already contains `/v1/logs`, it is used as-is for logs.

463+

- `OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental` controls only the

464+

GenAI span provider attribute shape. Existing dashboards that read

465+

`gen_ai.system` can keep the default until they migrate.

450466

- `OPENCLAW_OTEL_PRELOADED=1` reuses an externally registered OpenTelemetry SDK

451467

for traces/metrics instead of starting a plugin-owned NodeSDK.

452468

- `diagnostics.otel.logs` enables OTLP log export for the main logger output.