Closed dougEfresh closed 1 month ago
great stuff! thought of adding exacly this yesterday night behind a monitor
arg but didn't get to it, smart implementation through grpc. 🔥
Added support for RUST_LOG
RUST_LOG=info cargo run --features metrics -- --config /home/dougefish/.config/solana/cli/ore.yml mine --threads 4
2024-04-15T12:18:39.548883Z INFO otel: worker=2 monotonic_counter.miner=1
2024-04-15T12:18:39.686747Z INFO otel: worker=3 monotonic_counter.miner=1
2024-04-15T12:18:39.918902Z INFO otel: worker=0 monotonic_counter.miner=1
This is a build feature to enable metrics via opentelementry and the tracing_subscriber frameworks
--metrics
&--metrics-endpoint
otl_miner_total
&otl_send_tx_total
These are monotonic counters