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 b043ef0
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
When secret projection omits a span's content field or falls back to
structural-only spans, it now sets `contentWithheld: true` on the span. The
v2 log contract documents the marker, and `logs query` reports a withheld
note (and a `contentWithheld` count) instead of "path not found on span",
and keeps such runs under --where rather than silently filtering them 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) 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) 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