We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ca399 commit 3a656b7Copy full SHA for 3a656b7
ailogger-output.log
internal-packages/run-engine/src/batch-queue/index.ts
@@ -916,7 +916,11 @@ export class BatchQueue {
916
"BatchQueue.serializePayload",
917
async (innerSpan) => {
918
const str =
919
- typeof item.payload === "string" ? item.payload : JSON.stringify(item.payload);
+ item.payload === undefined || item.payload === null
920
+ ? "{}"
921
+ : typeof item.payload === "string"
922
+ ? item.payload
923
+ : JSON.stringify(item.payload);
924
innerSpan?.setAttribute("batch.payloadSize", str.length);
925
return str;
926
}
0 commit comments