pub struct ForwarderConfig {
pub address: ForwarderAddress,
pub queue_size: usize,
pub max_reconnect_delay: u64,
pub network_magic: u64,
pub node_name: Option<String>,
}Expand description
Configuration for the trace forwarder
Fields§
§address: ForwarderAddressAddress to connect to (Unix socket path or TCP host:port)
queue_size: usizeMaximum number of traces to buffer before dropping
max_reconnect_delay: u64Maximum reconnection delay in seconds
network_magic: u64Cardano network magic (must match the acceptor’s)
node_name: Option<String>Node display name advertised via the NodeInfo DataPoint.
When Some, the forwarder responds to "NodeInfo" DataPoint requests
with {\"niName\": name, ...}, which hermod-tracer (and Haskell
cardano-tracer) use as the node’s display name, Prometheus slug, and
log subdirectory name.
When None, the acceptor falls back to the connection-address node ID
(e.g. unix-1 for the first inbound Unix socket connection).
Trait Implementations§
Source§impl Clone for ForwarderConfig
impl Clone for ForwarderConfig
Source§fn clone(&self) -> ForwarderConfig
fn clone(&self) -> ForwarderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForwarderConfig
impl Debug for ForwarderConfig
Auto Trait Implementations§
impl Freeze for ForwarderConfig
impl RefUnwindSafe for ForwarderConfig
impl Send for ForwarderConfig
impl Sync for ForwarderConfig
impl Unpin for ForwarderConfig
impl UnsafeUnpin for ForwarderConfig
impl UnwindSafe for ForwarderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more