Struct sc_telemetry::TelemetryHandle [−][src]
pub struct TelemetryHandle { /* fields omitted */ }Handle to the TelemetryWorker thats allows initializing the telemetry for a Substrate node.
Implementations
impl TelemetryHandle[src]
impl TelemetryHandle[src]pub fn start_telemetry(
&mut self,
span: TelemetrySpan,
endpoints: TelemetryEndpoints,
connection_message: ConnectionMessage
) -> TelemetryConnectionNotifier[src]
&mut self,
span: TelemetrySpan,
endpoints: TelemetryEndpoints,
connection_message: ConnectionMessage
) -> TelemetryConnectionNotifier
Initialize the telemetry with the endpoints provided in argument for the current substrate node.
This method must be called during the substrate node initialization.
The endpoints argument is a collection of telemetry WebSocket servers with a corresponding
verbosity level.
The connection_message argument is a JSON object that is sent every time the connection
(re-)establishes.
Trait Implementations
impl Clone for TelemetryHandle[src]
impl Clone for TelemetryHandle[src]fn clone(&self) -> TelemetryHandle[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for TelemetryHandle
impl Send for TelemetryHandle
impl Sync for TelemetryHandle
impl Unpin for TelemetryHandle
impl !UnwindSafe for TelemetryHandle
Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]