Skip to content

feat(reporting): publish granular receipt gas to ClickHouse#171

Merged
Rjected merged 1 commit into
mainfrom
dan/clickhouse-receipt-records
Jul 22, 2026
Merged

feat(reporting): publish granular receipt gas to ClickHouse#171
Rjected merged 1 commit into
mainfrom
dan/clickhouse-receipt-records

Conversation

@Rjected

@Rjected Rjected commented Jul 22, 2026

Copy link
Copy Markdown
Member

Publishes one exact receipt-gas row per confirmed tracked transaction for bench send and scenario runs.

Each txgen_receipt_gas row includes the run ID, transaction hash, sender, canonical labels, optional scenario instance, receipt status and block identity, gas used, optional effective gas price, and optional fee paid. Exact U256 values are encoded as decimal strings and inserted in bounded synchronous batches.

ReceiptCollector::finish() now returns a ReceiptCollection containing both aggregate metrics and granular records; direct callers must read its metrics field. JSON reports remain aggregate-only. ClickHouse writes detail rows before txgen_runs, which acts as the final visibility marker.

Deploy 008_txgen_receipt_gas.sql before enabling receipt publication.

Retain one record per confirmed tracked receipt and write exact gas values to ClickHouse in bounded synchronous batches. Insert the common run marker only after all detail rows are acknowledged.
@Rjected
Rjected marked this pull request as ready for review July 22, 2026 21:37
@Rjected
Rjected merged commit cebfc56 into main Jul 22, 2026
8 checks passed
@Rjected
Rjected deleted the dan/clickhouse-receipt-records branch July 22, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant