6 releases (3 breaking)

Uses new Rust 2021

new 0.4.0 Aug 10, 2022
0.3.0 May 23, 2022
0.2.0 Apr 11, 2022
0.1.2 Feb 4, 2022
0.1.0 Dec 16, 2021

#1 in #tonic

Download history 19126/week @ 2022-04-25 17276/week @ 2022-05-02 16456/week @ 2022-05-09 16587/week @ 2022-05-16 16175/week @ 2022-05-23 17001/week @ 2022-05-30 18138/week @ 2022-06-06 18646/week @ 2022-06-13 21765/week @ 2022-06-20 22559/week @ 2022-06-27 21801/week @ 2022-07-04 22821/week @ 2022-07-11 22310/week @ 2022-07-18 22354/week @ 2022-07-25 24131/week @ 2022-08-01 20629/week @ 2022-08-08

90,904 downloads per month
Used in 21 crates (2 directly)

MIT license

82KB
1.5K SLoC

tokio-console API

🛰 Tonic bindings for the tokio-console protobuf wire format.

crates.io Documentation Documentation (main branch) MIT licensed Build Status Discord chat

Website | Chat | API Documentation

Overview

This crate contains generated protobuf bindings for the tokio-console wire format. The wire format is used to export diagnostic data from instrumented applications to consumers that aggregate and display that data.

tokio-console is a debugging and profiling tool for asynchronous Rust applications, which collects and displays in-depth diagnostic data on the asynchronous tasks, resources, and operations in an application. The console system consists of two primary components:

  • instrumentation, embedded in the application, which collects data from the async runtime and exposes it over the console's wire format
  • consumers, such as the tokio-console command-line application, which connect to the instrumented application, recieve telemetry data, and display it to the user

The wire format protobuf bindings in this crate are used by both the instrumentation in the console-subscriber crate, which emits telemetry in this format, and by the clients that consume that telemetry.

In general, most tokio-console users will not depend on this crate directly. Applications are typically instrumented using the console-subscriber crate, which collects data and exports it using this wire format; this data can be consumed using the tokio-console command-line application. However, the wire format API definition in this crate may be useful for anyone implementing other software that also consumes the tokio-console diagnostic data.

Stability

⚠️ The protobuf wire format is not currently considered totally stable. While we will try to avoid unnecessary protobuf-incompatible changes, protobuf compatibility is only guaranteed within SemVer-compatible releases of this crate. For example, the protobuf as of console-api v0.2.5 may not be backwards-compatible with console-api v0.1.12.

Crate Feature Flags

This crate provides the following feature flags:

Getting Help

First, see if the answer to your question can be found in the API documentation. If the answer is not there, there is an active community in the Tokio Discord server. We would be happy to try to answer your question. You can also ask your question on the discussions page.

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Tokio console project.

Supported Rust Versions

The Tokio console is built against the latest stable release. The minimum supported version is 1.58. The current Tokio console version is not guaranteed to build on Rust versions earlier than the minimum supported version.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~8–14MB
~252K SLoC