Tools for parsing the metadata for Mozilla's glean telemetry SDK
Перейти к файлу
Jan-Erik Rediger c1d1df2c87 Allow earlier versions of platformdirs 2024-11-08 17:30:30 +01:00
.circleci
.github Add codeowners 2024-07-15 12:50:46 +02:00
docs
glean_parser bug 1925346 - Support new metric type labeled_quantity 2024-10-21 14:10:56 -04:00
server_telemetry Send internal server metrics only in events ping 2024-05-08 11:49:01 +02:00
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.0 2024-10-22 11:29:10 -04: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
Makefile
README.md replace deprecated appdirs with platformdirs 2024-09-24 11:07:13 +02:00
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