kadena-io / chainweb-node

Chainweb: A Proof-of-Work Parallel-Chain Architecture for Massive Throughput
https://docs.kadena.io/basics/whitepapers/overview
BSD 3-Clause "New" or "Revised" License
249 stars 95 forks source link

Log information about transactions in a block #113

Closed mercadoa closed 5 years ago

mercadoa commented 5 years ago

At the very least, this should include:

mercadoa commented 5 years ago

➤ lars commented:

We log creation of new blocks in Chainweb.Miner.*. This is done be returning the new block header from the mine inner function. If we return the payload, too, we could extract some metrics from it and log that, too.

We shouldn't log the compete payload, but only some aggregated metrics.

mercadoa commented 5 years ago

➤ lars commented:

Payload metrics could be logged by adding them to the NewMinedBlock type or as a separate type, in the latter case a new logHandler would have to be added in node/ChainwebNode.hs. In the former case, everything should work (we just had to refresh the index pattern in Kibana)

mercadoa commented 5 years ago

Completed by Colin