Skip to content

Commit 931d2ac

Browse files
committed
chore: add payload id as attribute
1 parent 17eb5aa commit 931d2ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

execution/evm/engine_rpc_tracing.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ func (t *tracedEngineRPCClient) ForkchoiceUpdated(ctx context.Context, state eng
4646

4747
attributes := []attribute.KeyValue{
4848
attribute.String("payload_status", result.PayloadStatus.Status),
49-
attribute.Bool("has_payload_id", result.PayloadID != nil),
49+
}
50+
51+
if result.PayloadID != nil {
52+
attributes = append(attributes, attribute.String("payload_id", result.PayloadID.String()))
5053
}
5154

5255
if result.PayloadStatus.LatestValidHash != nil {

0 commit comments

Comments
 (0)