Skip to main content

Mozilla's Glean Telemetry SDK: The Machine that Goes 'Ping!'

Project description

Glean SDK

Glean logo

glean-core on crates.io License: MPL-2.0 The Glean SDK book Build Status Code coverage

Documentation

All documentation is available online:

The Glean SDK Book

Overview

Refer to the documentation for using and developing the Glean SDK.

For an overview of Glean beyond just the SDK, see the section in the Firefox data docs.

The code in this repository is organized as follows:

Note: The Glean SDK requires at least Rust 1.34.2. Older versions are untested.

Contact

To contact us you can:

Credits

The Glean logo artwork was contributed by Diana Ciufo. It's licensed under MPL.

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/

Unreleased changes

Full changelog

v21.3.0 (2019-12-03)

Full changelog

  • Timers are reset when disabled. That avoids recording timespans across disabled/enabled toggling (#495).
  • Add a new flag to pings: send_if_empty (#528)
  • Upgrade glean_parser to v1.12.0
  • Implement the deletion request ping in Glean (#526)

v21.2.0 (2019-11-21)

Full changelog

  • All platforms

    • The experiments API is no longer ignored before the Glean SDK initialized. Calls are recorded and played back once the Glean SDK is initialized.

    • String list items were being truncated to 20, rather than 50, bytes when using .set() (rather than .add()). This has been corrected, but it may result in changes in the sent data if using string list items longer than 20 bytes.

v21.1.1 (2019-11-20)

Full changelog

  • Android:

    • Use the LifecycleEventObserver interface, rather than the DefaultLifecycleObserver interface, since the latter isn't compatible with old SDK targets.

v21.1.0 (2019-11-20)

Full changelog

  • Android:

    • Two new metrics were added to investigate sending of metrics and baseline pings. See bug 1597980 for more information.

    • Glean's two lifecycle observers were refactored to avoid the use of reflection.

  • All platforms:

    • Timespans will now not record an error if stopping after setting upload enabled to false.

v21.0.0 (2019-11-18)

Full changelog

  • Android:

    • The GleanTimerId can now be accessed in Java and is no longer a typealias.

    • Fixed a bug where the metrics ping was getting scheduled twice on startup.

  • All platforms

    • Bumped glean_parser to version 1.11.0.

v20.2.0 (2019-11-11)

Full changelog

  • In earlier 20.x.x releases, the version of glean-ffi was incorrectly built against the wrong version of glean-core.

v20.1.0 (2019-11-11)

Full changelog

  • The version of Glean is included in the Glean Gradle plugin.

  • When constructing a ping, events are now sorted by their timestamp. In practice, it rarely happens that event timestamps are unsorted to begin with, but this guards against a potential race condition and incorrect usage of the lower-level API.

v20.0.0 (2019-11-11)

Full changelog

  • Glean users should now use a Gradle plugin rather than a Gradle script. (#421) See integrating with the build system docs for more information.

  • In Kotlin, metrics that can record errors now have a new testing method, testGetNumRecordedErrors. (#401)

v19.1.0 (2019-10-29)

Full changelog

  • Fixed a crash calling start on a timing distribution metric before Glean is initialized. Timings are always measured, but only recorded when upload is enabled (#400)
  • BUGFIX: When the Debug Activity is used to log pings, each ping is now logged only once (#407)
  • New invalid state error, used in timespan recording (#230)
  • Add an Android crash instrumentation walkthrough (#399)
  • Fix crashing bug by avoiding assert-printing in lmdb (#422)
  • Upgrade dependencies, including rkv (#416)

v19.0.0 (2019-10-22)

Full changelog

First stable release of Glean in Rust (aka glean-core). This is a major milestone in using a cross-platform implementation of Glean on the Android platform.

  • Fix roundtripping of timezone offsets in dates (#392)
  • Handle dynamic labels in coroutine tasks (#394)

v0.0.1-TESTING6 (2019-10-18)

Full changelog

  • Ignore dynamically stored labels if Glean is not initialized (#374)
  • Make sure ProGuard doesn't remove Glean classes from the app (#380)
  • Keep track of pings in all modes (#378)
  • Add 'jnaTest' dependencies to the 'forUnitTest' JAR (#382)

v0.0.1-TESTING5 (2019-10-10)

Full changelog

  • Upgrade to NDK r20 (#365)

v0.0.1-TESTING4 (2019-10-09)

Full changelog

  • Take DST into account when converting a calendar into its items (#359)
  • Include a macOS library in the forUnitTests builds (#358)
  • Keep track of all registered pings in test mode (#363)

v0.0.1-TESTING3 (2019-10-08)

Full changelog

  • Allow configuration of Glean through the GleanTestRule
  • Bump glean_parser version to 1.9.2

v0.0.1-TESTING2 (2019-10-07)

Full changelog

  • Include a Windows library in the forUnitTests builds

v0.0.1-TESTING1 (2019-10-02)

Full changelog

General

First testing release.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glean_sdk-21.3.0-cp37-cp37m-manylinux1_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.7m

File details

Details for the file glean_sdk-21.3.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: glean_sdk-21.3.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for glean_sdk-21.3.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 13e27efde0ee3bfd2b3707022b57cda9d3b755c4ab16a23fc48c355a4f2e3686
MD5 4a099282d425d137c81079b1bca277b9
BLAKE2b-256 60c680fe2e92f71e49b0f995351d8aae4db66a580e06f5eb01817ce7a498f035

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page