lighthouse/beacon_node/http_api/src
Age Manning aa1ed787e9 Logging via the HTTP API (#4074)
This PR adds the ability to read the Lighthouse logs from the HTTP API for both the BN and the VC. 

This is done in such a way to as minimize any kind of performance hit by adding this feature.

The current design creates a tokio broadcast channel and mixes is into a form of slog drain that combines with our main global logger drain, only if the http api is enabled. 

The drain gets the logs, checks the log level and drops them if they are below INFO. If they are INFO or higher, it sends them via a broadcast channel only if there are users subscribed to the HTTP API channel. If not, it drops the logs. 

If there are more than one subscriber, the channel clones the log records and converts them to json in their independent HTTP API tasks. 

Co-authored-by: Michael Sproul <micsproul@gmail.com>
2023-05-22 05:57:08 +00:00
..
attestation_performance.rs improve error message (#4141) 2023-03-28 22:07:05 +00:00
attester_duties.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
block_id.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
block_packing_efficiency.rs Separate execution payloads in the DB (#3157) 2022-05-12 00:42:17 +00:00
block_rewards.rs compile 2022-10-03 21:48:02 -04:00
database.rs Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
lib.rs Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
metrics.rs Reduce false positive logging for late builder blocks (#4073) 2023-03-17 00:44:03 +00:00
proposer_duties.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
publish_blocks.rs Reduce false positive logging for late builder blocks (#4073) 2023-03-17 00:44:03 +00:00
standard_block_rewards.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
state_id.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
sync_committee_rewards.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
sync_committees.rs Add more metrics for tracking sync messages (#4308) 2023-05-19 05:13:07 +00:00
test_utils.rs Logging via the HTTP API (#4074) 2023-05-22 05:57:08 +00:00
ui.rs Split common crates out into their own repos (#3890) 2023-04-28 01:15:40 +00:00
validator_inclusion.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00
version.rs Add finalized to HTTP API responses (#3753) 2023-03-30 06:08:37 +00:00