43 stable releases (10 major)

42.3.2 Dec 15, 2021
42.2.0 Nov 3, 2021
41.1.1 Sep 29, 2021
40.2.0 Sep 8, 2021
0.0.0 Dec 4, 2018

#5 in #telemetry

Download history 457/week @ 2021-09-26 493/week @ 2021-10-03 472/week @ 2021-10-10 424/week @ 2021-10-17 344/week @ 2021-10-24 268/week @ 2021-10-31 306/week @ 2021-11-07 341/week @ 2021-11-14 245/week @ 2021-11-21 298/week @ 2021-11-28 426/week @ 2021-12-05 312/week @ 2021-12-12 170/week @ 2021-12-19 102/week @ 2021-12-26 71/week @ 2022-01-02 194/week @ 2022-01-09

564 downloads per month

MPL-2.0 license

720KB
13K SLoC

glean

The Glean SDK is a modern approach for a Telemetry library and is part of the Glean project.

glean

This library provides a Rust language bindings on top of glean-core, targeted to Rust consumers.

Note: glean is currently under development and not yet ready for use.

Documentation

All documentation is available online:

Example

use glean::{Configuration, Error, metrics::*};

let cfg = Configuration {
    data_path: "/tmp/data".into(),
    application_id: "org.mozilla.glean_core.example".into(),
    upload_enabled: true,
    max_events: None,
    delay_ping_lifetime_io: false,
};
glean::initialize(cfg)?;

let prototype_ping = PingType::new("prototype", true, true, vec![]);

glean::register_ping_type(&prototype_ping);

prototype_ping.submit(None);

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/

Dependencies

~6.5MB
~152K SLoC

`a