36 releases (15 major breaking)

17.0.0 Feb 26, 2024
16.0.0 Feb 13, 2024
15.0.0 Jan 23, 2024
14.0.0 Dec 12, 2023
2.0.0-alpha.5 Mar 24, 2020

#993 in Magic Beans

Download history 1956/week @ 2023-11-20 1431/week @ 2023-11-27 1071/week @ 2023-12-04 1823/week @ 2023-12-11 1482/week @ 2023-12-18 727/week @ 2023-12-25 1227/week @ 2024-01-01 2097/week @ 2024-01-08 1639/week @ 2024-01-15 1726/week @ 2024-01-22 1179/week @ 2024-01-29 1678/week @ 2024-02-05 2407/week @ 2024-02-12 2681/week @ 2024-02-19 3136/week @ 2024-02-26 2631/week @ 2024-03-04

11,111 downloads per month
Used in 105 crates (19 directly)

GPL-3.0-or-later…

96KB
2K SLoC

sc-telemetry

Substrate's client telemetry is a part of Substrate that allows ingesting telemetry data with for example Polkadot 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 Substrate nodes are running in the same process, it uses a tracing::Span to identify which Substrate node is reporting the telemetry. Every task spawned using sc-service's TaskManager automatically inherit this span.

Substrate's nodes initialize/register with the TelemetryWorker using a TelemetryHandle. 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.

License: GPL-3.0-or-later WITH Classpath-exception-2.0

Dependencies

~13–53MB
~862K SLoC