glean-sdk
Mozilla's Glean Telemetry SDK: The Machine that Goes 'Ping!'
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-sdkuv
uv add glean-sdkpoetry
poetry add glean-sdkInstalling 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
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
glean-api-clientA Python SDK for accessing Glean's REST API,…
unclear · top 15,000 on PyPI
glean-parserParses and validates Glean telemetry…
unclear · top 15,000 on PyPI
mozilla-taskgraphProvides Mozilla-specific transforms and…
copyleft · top 15,000 on PyPI
mozlogProvides structured logging for Python…
copyleft · top 15,000 on PyPI
azureml-telemetryCollects telemetry data from Python code by…
unclear · top 15,000 on PyPI
mozrunnerMozrunner manages the lifecycle of Mozilla…
copyleft · top 15,000 on PyPI
mozdeviceManages and controls connected mobile devices…
copyleft · top 15,000 on PyPI
mozfileProvides file and directory utilities for…
copyleft · top 15,000 on PyPI
kanaries-trackSends event and metric data to Kanaries' data…
permissive · top 15,000 on PyPI
mozprofileCreates and modifies Mozilla application…
copyleft · top 15,000 on PyPI