sof 0.17.1

Solana Observer Framework for low-latency shred ingestion and plugin-driven transaction observation
Documentation
1
2
3
4
5
6
7
8
9
use std::net::SocketAddr;

use super::read_env_var;

/// Reads the runtime-owned observability bind address from `SOF_OBSERVABILITY_BIND`.
#[must_use]
pub fn read_observability_bind_addr() -> Option<SocketAddr> {
    read_env_var("SOF_OBSERVABILITY_BIND").and_then(|value| value.parse::<SocketAddr>().ok())
}