Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: add otel attributes to batch export queue (#9776)

Max Deichmann6a6968358918
diff --git a/worker/src/features/batchExport/handleBatchExportJob.ts b/worker/src/features/batchExport/handleBatchExportJob.ts
index 5920e6b555..e7143936c4 100644
--- a/worker/src/features/batchExport/handleBatchExportJob.ts
+++ b/worker/src/features/batchExport/handleBatchExportJob.ts
@@ -77,6 +77,13 @@ export const handleBatchExportJob = async (
);
}
+ if (span) {
+ span.setAttribute(
+ "messaging.bullmq.job.input.query",
+ JSON.stringify(parsedQuery.data),
+ );
+ }
+
// handle db read stream
const dbReadStream = await getDatabaseReadStream({
projectId,