feat(clickhouse): add ClickHouseExecutionStore with batch insert for chunked format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-31 19:07:33 +02:00
parent b30dfa39f4
commit 81f7f8afe1
3 changed files with 421 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
package com.cameleer3.server.core.ingestion;
import java.time.Instant;
/**
* A merged execution envelope ready for ClickHouse insertion.
* Produced by ChunkAccumulator after receiving the final chunk.
*/
public record MergedExecution(
String tenantId,
long version,
String executionId,
String routeId,
String agentId,
String applicationName,
String status,
String correlationId,
String exchangeId,
Instant startTime,
Instant endTime,
Long durationMs,
String errorMessage,
String errorStacktrace,
String errorType,
String errorCategory,
String rootCauseType,
String rootCauseMessage,
String diagramContentHash,
String engineLevel,
String inputBody,
String outputBody,
String inputHeaders,
String outputHeaders,
String attributes,
String traceId,
String spanId,
boolean hasTraceData,
boolean isReplay
) {}