Skip to content

[FEAT] Add more parameter to one log line #225

@blevkivskyi-everstake

Description

@blevkivskyi-everstake

It would be great to have in one log line more parameters, that could be processed by Grafana/LOKI

Commit-boost:

2025-01-01T04:04:00.405411Z  INFO get_header{req_id=2869e01c-a39d-4793-805c-29067db47846 slot=3316820}: received header value_eth="0.002629109072852370" block_hash=0x8a4873e7d485d56fc28bd4d15ed21f259b243b6449a4fab71561693fe208d288

2025-01-01T04:04:00.394390Z DEBUG get_header{req_id=2869e01c-a39d-4793-805c-29067db47846 slot=3316820}:handler{relay_id="boost-relay-holesky.flashbots.net"}: received new header latency=262.760568ms value_eth="0.002629109072852370" block_hash=0x8a4873e7d485d56fc28bd4d15ed21f259b243b6449a4fab71561693fe208d288

2025-01-01T04:04:00.131335Z DEBUG get_header{req_id=2869e01c-a39d-4793-805c-29067db47846 slot=3316820}: using mux config mux_id="test_mux_2" relays=1 pubkey=0xb28dbbcec926781dcc028c0601ffbb0df6316ba41fac800ffd650e9b8b00414fc34a0c77ba78299883aab9254ca1554a

2025-01-01T04:04:00.131283Z  INFO get_header{req_id=2869e01c-a39d-4793-805c-29067db47846 slot=3316820}: ua="Lighthouse/v6.0.1-0d90135" parent_hash=0x6f1c01d150fed6217b5a4e5c026e5615d957177d4e3e22174c94740ffef3b277 validator_pubkey=0xb28dbbcec926781dcc028c0601ffbb0df6316ba41fac800ffd650e9b8b00414fc34a0c77ba78299883aab9254ca1554a ms_into_slot=131

Mev-boost:

time="2025-**-**T**:**:**.***Z" level=info msg="best bid" blockHash=0x*** blockNumber=*** method=getHeader parentHash=0x*** pubkey=0x*** relays="http://0x***" slot=*** slotUID=***-***-***-***-*** txRoot=0x*** ua=teku/v24.12.1 value=100000000000 version=v1.8.1

This will be useful for Grafana alerting:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions