Expand description
Bizinikiwi’s client telemetry is a part of bizinikiwi that allows ingesting telemetry data with for example Pezkuwi telemetry.
It works using Tokio’s tracing library. The telemetry
information uses tracing’s logging to report the telemetry data which is then retrieved by a
tracing Layer. This layer will then send the data through an asynchronous channel to a
background task called TelemetryWorker which will send the information to the configured
remote telemetry servers.
If multiple bizinikiwi nodes are running in the same process, it uses a tracing::Span to
identify which bizinikiwi node is reporting the telemetry. Every task spawned using sc-service’s
TaskManager automatically inherit this span.
Bizinikiwi’s nodes initialize/register with the TelemetryWorker using a
TelemetryWorkerHandle. This handle can be cloned and passed around. It uses an asynchronous
channel to communicate with the running TelemetryWorker dedicated to registration.
Registering can happen at any point in time during the process execution.
Re-exports§
pub use log;pub use serde_json;
Macros§
- telemetry
- Report a telemetry.
Structs§
- Connection
Message - Message sent when the connection (re-)establishes.
- SysInfo
- Hardware and software information for the node.
- Telemetry
- A telemetry instance that can be used to send telemetry messages.
- Telemetry
Connection Notifier - Used to create a stream of events with only one event: when a telemetry connection (re-)establishes.
- Telemetry
Endpoints - List of telemetry servers we want to talk to. Contains the URL of the server, and the maximum verbosity level.
- Telemetry
Handle - Handle to a
Telemetry. - Telemetry
Worker - Telemetry worker.
- Telemetry
Worker Handle - Handle to the
TelemetryWorkerthats allows initializing the telemetry for a Bizinikiwi node.
Enums§
Constants§
- BIZINIKIWI_
DEBUG - Bizinikiwi DEBUG log level.
- BIZINIKIWI_
INFO - Bizinikiwi INFO log level.
- CONSENSUS_
DEBUG - Consensus DEBUG log level.
- CONSENSUS_
INFO - Consensus INFO log level.
- CONSENSUS_
TRACE - Consensus TRACE log level.
- CONSENSUS_
WARN - Consensus WARN log level.
Type Aliases§
- Result
- Verbosity
Level - Telemetry message verbosity.