Skip to content

Commit 347f543

Browse files
committed
fix(diagnostics): align response byte metric description
1 parent 6d90c9c commit 347f543

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

docs/gateway/opentelemetry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ message bodies are also approved for export.
190190
- `gen_ai.client.operation.duration` (histogram, seconds, GenAI semantic-conventions metric, attrs: `gen_ai.provider.name`, `gen_ai.operation.name`, `gen_ai.request.model`, optional `error.type`)
191191
- `openclaw.model_call.duration_ms` (histogram, attrs: `openclaw.provider`, `openclaw.model`, `openclaw.api`, `openclaw.transport`, plus `openclaw.errorCategory` and `openclaw.failureKind` on classified errors)
192192
- `openclaw.model_call.request_bytes` (histogram, UTF-8 byte size of the final model request payload; no raw payload content)
193-
- `openclaw.model_call.response_bytes` (histogram, UTF-8 byte size of streamed model response events excluding accumulated `partial` snapshots on delta events; no raw response content)
193+
- `openclaw.model_call.response_bytes` (histogram, UTF-8 byte size of streamed response chunk payloads; high-frequency text, thinking, and tool-call deltas count only incremental `delta` bytes; no raw response content)
194194
- `openclaw.model_call.time_to_first_byte_ms` (histogram, elapsed time before the first streamed response event)
195195
- `openclaw.model.failover` (counter, attrs: `openclaw.provider`, `openclaw.model`, `openclaw.failover.to_provider`, `openclaw.failover.to_model`, `openclaw.failover.reason`, `openclaw.failover.suspended`, `openclaw.lane`)
196196
- `openclaw.skill.used` (counter, attrs: `openclaw.skill.name`, `openclaw.skill.source`, `openclaw.skill.activation`, optional `openclaw.agent`, optional `openclaw.toolName`)

extensions/diagnostics-otel/src/service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,8 +1464,7 @@ export function createDiagnosticsOtelService(): OpenClawPluginService {
14641464
"openclaw.model_call.response_bytes",
14651465
{
14661466
unit: "By",
1467-
description:
1468-
"UTF-8 byte size of streamed model response events excluding accumulated partial snapshots",
1467+
description: "UTF-8 byte size of bounded streamed model response payloads",
14691468
},
14701469
);
14711470
const modelCallTimeToFirstByteHistogram = meter.createHistogram(

0 commit comments

Comments
 (0)