(value: string | undefined)
| 175 | } |
| 176 | |
| 177 | function summarizeTextForExecutionData(value: string | undefined): string | undefined { |
| 178 | if (!value) return value |
| 179 | const size = getJsonByteSize(value, MAX_TRACE_IO_BYTES) |
| 180 | if (size === undefined || size <= MAX_TRACE_IO_BYTES) { |
| 181 | return value |
| 182 | } |
| 183 | return `[Truncated ${size} byte text value due to execution log size limit]` |
| 184 | } |
| 185 | |
| 186 | function summarizeTraceSpansForExecutionData(traceSpans?: TraceSpan[]): TraceSpan[] | undefined { |
| 187 | if (!traceSpans) { |
no test coverage detected