Tools for parsing the metadata for Mozilla's glean telemetry SDK
Перейти к файлу
Jan-Erik Rediger ab56f6e892 Release v15.2.1 2024-11-08 17:31:54 +01:00
.circleci
.github
docs
glean_parser bug 1925346 - Support new metric type labeled_quantity 2024-10-21 14:10:56 -04:00
server_telemetry
tests bug 1925346 - Support new metric type labeled_quantity 2024-10-21 14:10:56 -04:00
tools
.editorconfig
.gitignore
.swiftlint.yml
AUTHORS.md
CHANGELOG.md Release v15.2.1 2024-11-08 17:31:54 +01:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Update release instructions to include nice-to-haves 2024-10-22 11:29:10 -04:00
LICENSE
MANIFEST.in Bug 1691116: Convert (most) rst files to markdown (#273) 2021-02-16 12:45:51 -05:00
Makefile
README.md
pytest.ini
requirements_dev.txt Bump ruff from 0.7.0 to 0.7.2 2024-11-04 10:19:34 +01:00
setup.cfg
setup.py Allow earlier versions of platformdirs 2024-11-08 17:30:30 +01:00

README.md

Glean Parser

Parser tools for Mozilla's Glean telemetry.

Features

Contains various utilities for handling metrics.yaml and pings.yaml for the Glean SDKs. This includes producing generated code for various integrations, linting and coverage testing.

Documentation

Requirements

  • Python 3.8 (or later)

The following library requirements are installed automatically when glean_parser is installed by pip.

  • Click
  • diskcache
  • Jinja2
  • jsonschema
  • platformdirs
  • PyYAML

Usage

$ glean_parser --help

Read in metrics.yaml, translate to Kotlin format, and output to output_dir:

$ glean_parser translate -o output_dir -f kotlin metrics.yaml

Check a Glean ping against the ping schema:

$ glean_parser check < ping.json