You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 053c933
Browse filesBrowse the repository at this point in the historyBrowse files
fix(logs): mark withheld trace span content so logs query stops reporting it as missing (#9314)
- Secret projection sets `contentWithheld: true` on a span when it omits any of its content (input/output/thinking/errorMessage, tool-call or provider-segment content) and on every span of a structural-only fallback; marker only, no content restored
- v2 `LogTraceSpan` contract documents the optional marker (additive); regenerated openapi-v2-logs.json
- `logs query` reports a withheld note and a `contentWithheld` count instead of "path not found on span"; under --where, withheld runs are kept (with --field still resolved) instead of silently filtered out
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-logs.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1448,6 +1448,11 @@
1448
1448
"type": "number",
1449
1449
"description": "Offset from the root span in milliseconds."
1450
1450
},
1451
+
"contentWithheld": {
1452
+
"type": "boolean",
1453
+
"const": true,
1454
+
"description": "Present when the log projection withheld some or all of this span's content (input, output, thinking, error message, tool-call or provider-segment content) because it could not be proven safe to display. Status, timing, and usage remain. A field missing from a span carrying this marker may exist on the run but was not returned."
@@ -273,6 +274,12 @@ export const traceSpanSchema: z.ZodType<LogTraceSpan> = z
273
274
.number()
274
275
.describe('Offset from the root span in milliseconds.')
275
276
.optional(),
277
+
contentWithheld: z
278
+
.literal(true)
279
+
.describe(
280
+
"Present when the log projection withheld some or all of this span's content (input, output, thinking, error message, tool-call or provider-segment content) because it could not be proven safe to display. Status, timing, and usage remain. A field missing from a span carrying this marker may exist on the run but was not returned."
281
+
)
282
+
.optional(),
276
283
toolCalls: z.array(toolCallSchema).describe('Tool calls recorded by the span.').optional(),
0 commit comments