pub struct ObservabilityBackendChannels {
pub log_channels: Vec<Sender<LogMessage>>,
pub metric_channels: Vec<Sender<Metric>>,
pub trace_channels: Vec<(Sender<()>, Receiver<Sender<TraceSignal>>)>,
}Expand description
Observability backend channels inside configurations
Fields§
§log_channels: Vec<Sender<LogMessage>>Log channels
metric_channels: Vec<Sender<Metric>>Metric channels
trace_channels: Vec<(Sender<()>, Receiver<Sender<TraceSignal>>)>Trace channels
Implementations§
Source§impl ObservabilityBackendChannels
impl ObservabilityBackendChannels
Sourcepub fn add_log_channel(&mut self, channel: Sender<LogMessage>)
pub fn add_log_channel(&mut self, channel: Sender<LogMessage>)
Adds a log channel to the observability backend channels
Sourcepub fn add_metric_channel(&mut self, channel: Sender<Metric>)
pub fn add_metric_channel(&mut self, channel: Sender<Metric>)
Adds a metric channel to the observability backend channels
Sourcepub fn add_trace_channel(
&mut self,
channel: (Sender<()>, Receiver<Sender<TraceSignal>>),
)
pub fn add_trace_channel( &mut self, channel: (Sender<()>, Receiver<Sender<TraceSignal>>), )
Adds a trace channel to the observability backend channels
Trait Implementations§
Source§impl Clone for ObservabilityBackendChannels
impl Clone for ObservabilityBackendChannels
Source§fn clone(&self) -> ObservabilityBackendChannels
fn clone(&self) -> ObservabilityBackendChannels
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 moreAuto Trait Implementations§
impl Freeze for ObservabilityBackendChannels
impl RefUnwindSafe for ObservabilityBackendChannels
impl Send for ObservabilityBackendChannels
impl Sync for ObservabilityBackendChannels
impl !Unpin for ObservabilityBackendChannels
impl UnwindSafe for ObservabilityBackendChannels
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