skillfed

glean-sdk

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

glean-sdk v69.0.0 221.0K downloads/30d#9,285 on PyPI460
License unclear Active released

What it is and what it does

Glean SDK is Mozilla's production telemetry framework, providing Python bindings to a Rust-backed core library. It enables applications to define, collect, and transmit structured telemetry data (events, counters, timings, and other metrics) through a standardized schema-driven approach. The SDK handles validation, batching, and transmission of telemetry pings to Mozilla's data infrastructure.

The package depends on semver for version handling and glean-parser for schema validation. It ships as pre-built wheels for major platforms (macOS, Linux, Windows) and architectures (x86_64, ARM64), reducing installation friction. The library is actively maintained by Mozilla's data platform team and has been in production use since 2019.

Use it for:

  • Collect structured telemetry from Python applications to understand user behavior and feature adoption
  • Validate telemetry schemas at build time using glean-parser before runtime data collection
  • Send batched usage metrics and performance data to Mozilla's telemetry pipeline for analysis
  • Track application events, crashes, and performance metrics in a privacy-respecting, schema-validated way
  • Integrate telemetry collection into desktop or server applications without building custom instrumentation

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Glean SDK is Mozilla's telemetry collection library that lets applications gather, validate, and send structured usage data to Mozilla's data pipeline.

Yes, if you need to send telemetry to Mozilla's infrastructure or adopt a schema-driven telemetry framework. The SDK is actively maintained, has no known vulnerabilities, and ships with pre-built wheels for common platforms. The main caveat is that license treatment is unclear in the package metadata—verify the actual license (likely MPL 2.0 per the repository) before use in proprietary contexts.

Install

glean-sdk on PyPI

pip

pip install glean-sdk

uv

uv add glean-sdk

poetry

poetry add glean-sdk

Installing glean-sdk

Before you install

Medium install friction due to pre-built wheels for multiple platforms (macOS, Linux, Windows, ARM). Requires Python 3.9+. Active maintenance with recent commits and a stable release history since 2019.

License in practice

License treatment is unclear in the package metadata, though the repository indicates Mozilla Public License v2.0. Verify the actual license terms before use in proprietary or restricted contexts.

Quickstart

pip install glean-sdk

from glean import Glean
Glean.initialize(app_id='my_app', app_version='1.0.0')

Requires Python 3.9 or later. Glean core requires Rust 1.90.0 or later for development/building from source.

Verify before relying

  • Exact scope and completeness of telemetry metrics supported beyond the SDK book documentation
  • Data retention and privacy guarantees for telemetry sent to Mozilla's pipeline
  • Whether glean-parser dependency is required at runtime or only for schema validation workflows

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.9)
Install friction medium — platform-specific wheel
Runtime dependencies 2 — semver, glean-parser
Maintenance actively maintained — 53 days since the last release
Last repo commit
First released
Downloads 221,043/month — #9,285 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: glean_sdk-69.0.0-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; glean_sdk-69.0.0-py3-none-macosx_10_12_x86_64.whl; glean_sdk-69.0.0-py3-none-macosx_11_0_arm64.whl; glean_sdk-69.0.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; glean_sdk-69.0.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; glean_sdk-69.0.0-py3-none-manylinux_2_34_x86_64.whl; glean_sdk-69.0.0-py3-none-win_amd64.whl; glean_sdk-69.0.0-py3-none-win_arm64.whl

Intended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Rust

Tags

telemetry collection sdkmozilla glean telemetrystructured event trackingapplication usage metricsdata collection pipelinetelemetry validationping-based telemetry
telemetrymozilladata-collection

More Monitoring packages