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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
美团技术团队
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
A
About on SuperTechFans
Recent Announcements
Recent Announcements
D
Docker
Vercel News
Vercel News
Engineering at Meta
Engineering at Meta
腾讯CDC
Martin Fowler
Martin Fowler
阮一峰的网络日志
阮一峰的网络日志

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(qa): require genai otel model spans (#86920) · opencl...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -89,7 +89,6 @@ const OTLP_SIGNAL_PATHS = new Map<string, OtlpSignal>([

8989

const REQUIRED_SPAN_NAMES = [

9090

"openclaw.run",

9191

"openclaw.harness.run",

92-

"openclaw.model.call",

9392

"openclaw.context.assembled",

9493

"openclaw.message.delivery",

9594

] as const;

@@ -911,6 +910,19 @@ function capturedValueKind(value: string | number | boolean | string[]): string

911910

return Array.isArray(value) ? "array" : typeof value;

912911

}

913912913+

function isLatestGenAiModelCallSpan(span: CapturedSpan): boolean {

914+

const operationName = span.attributes["gen_ai.operation.name"];

915+

const modelName = span.attributes["gen_ai.request.model"];

916+

if (typeof operationName !== "string" || typeof modelName !== "string") {

917+

return false;

918+

}

919+

return (

920+

span.name === `${operationName} ${modelName}` &&

921+

typeof span.attributes["openclaw.provider"] === "string" &&

922+

typeof span.attributes["openclaw.model"] === "string"

923+

);

924+

}

925+914926

function assertSmoke(params: {

915927

childExitCode: number;

916928

disallowedBodyNeedles: string[];

@@ -951,6 +963,13 @@ function assertSmoke(params: {

951963

failures.push(`missing required span ${name}`);

952964

}

953965

}

966+

const modelSpans = params.spans.filter(isLatestGenAiModelCallSpan);

967+

if (modelSpans.length === 0) {

968+

failures.push("missing required GenAI model-call span");

969+

}

970+

if (spanNames.has("openclaw.model.call")) {

971+

failures.push("legacy openclaw.model.call span exported with GenAI semconv opt-in");

972+

}

954973

const metricNames = new Set(params.metrics.map((metric) => metric.name));

955974

for (const name of REQUIRED_METRIC_NAMES) {

956975

if (!metricNames.has(name)) {

@@ -975,8 +994,10 @@ function assertSmoke(params: {

975994

if (contentKeys.length > 0) {

976995

failures.push(`content attributes exported with capture disabled: ${contentKeys.join(", ")}`);

977996

}

997+

if (modelSpans.some((span) => Object.hasOwn(span.attributes, "gen_ai.system"))) {

998+

failures.push("legacy gen_ai.system attribute exported on GenAI model-call span");

999+

}

9781000979-

const modelSpans = params.spans.filter((span) => span.name === "openclaw.model.call");

9801001

const modelErrorSpans = modelSpans.filter((span) => {

9811002

const serialized = JSON.stringify(span.attributes);

9821003

return (

@@ -985,9 +1006,6 @@ function assertSmoke(params: {

9851006

serialized.includes("StreamAbandoned")

9861007

);

9871008

});

988-

if (modelSpans.length === 0) {

989-

failures.push("no openclaw.model.call span was exported");

990-

}

9911009

if (modelErrorSpans.length > 0) {

9921010

failures.push("successful QA run exported model-call error attributes");

9931011

}