feat: implement EIP-7928 Block-Level Access Lists OpenTelemetry tracing#2
Open
AbdelStark wants to merge 2 commits into
Open
feat: implement EIP-7928 Block-Level Access Lists OpenTelemetry tracing#2AbdelStark wants to merge 2 commits into
AbdelStark wants to merge 2 commits into
Conversation
added 2 commits
January 28, 2026 18:24
Implements the OpenTelemetry tracing specification for EIP-7928 Block-Level Access Lists as defined in the BAL OTel spec. Adds: - BAL data model (BlockAccessList, BlockAccessListEntry) - OTel spans: ethereum.block, ethereum.tx.execute, ethereum.stateroot, ethereum.bal.prefetch (with optional per-account/slot child spans) - OTel metrics: counters and histograms per spec sections 6.2-6.3 - BAL tracing configuration (enable/disable, OTLP endpoint) - Integration with AbstractBlockProcessor for block processing tracing - Unit tests for all major components Key components: - BalOtelTracer: Main tracer managing span hierarchy - BalMetrics: Counter and histogram metrics as per specification - BalPrefetchTracer: Specialized prefetch phase tracing - BalSpanAttributes: Constants for span attribute names - BalTracingConfig: Configuration for tracing settings The implementation follows the span hierarchy defined in the spec: ethereum.block ├── ethereum.bal.prefetch │ ├── ethereum.bal.prefetch.account (optional) │ └── ethereum.bal.prefetch.slot (optional) ├── ethereum.tx.execute (per transaction) └── ethereum.stateroot Performance requirements addressed: - Lazy attribute setting for minimal overhead - Optional detailed tracing for per-account/slot spans - Configurable enable/disable settings Ref: besu-eth#9704
Comprehensive documentation covering: - Implementation overview and span hierarchy - Configuration and usage examples - Performance characteristics - Component descriptions - Future integration notes - Testing information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the OpenTelemetry tracing specification for EIP-7928 Block-Level Access Lists (BAL) as defined in the BAL OTel spec.
What's Included
BAL Data Model
BlockAccessList— Complete BAL data structure with accounts, storage slots, and code access trackingBlockAccessListEntry— Individual entry with storage keys and code access flagsOpenTelemetry Spans (Section 5)
Full span hierarchy per spec:
OpenTelemetry Metrics (Section 6)
Configuration
localhost:4317)Performance
Tests
BalOtelTracerTest— Tracer functionalityBalMetricsTest— Metrics recordingBlockAccessListTest— Data modelIntegration
Integrated into
AbstractBlockProcessorwith backward compatibility. BAL extraction is a placeholder (extractBlockAccessList) until the actual EIP-7928 block header data is available.References