Tools for parsing the metadata for Mozilla's glean telemetry SDK
Перейти к файлу
Jan-Erik Rediger b6982a193d Release v15.0.1 2024-09-02 12:51:36 +02:00
.circleci Add Go log outputter 2024-01-17 11:13:15 +01:00
.github Add codeowners 2024-07-15 12:50:46 +02:00
docs Mark the Glean team as author of this package 2022-03-14 11:22:30 +01:00
glean_parser Rust codegen: use correctly named parameter 2024-08-30 16:17:43 +02:00
server_telemetry Send internal server metrics only in events ping 2024-05-08 11:49:01 +02:00
tests Rust codegen: use correctly named parameter 2024-08-30 16:17:43 +02:00
tools Apply auto-formatting 2024-03-05 22:44:42 +01:00
.editorconfig Initial commit from cookiecutter 2018-10-15 09:48:45 -04:00
.gitignore Use pre-built detekt 2019-10-22 14:56:16 -04:00
.swiftlint.yml Lint generated swift files (if swiftlint is available) 2019-09-16 14:25:38 +02:00
AUTHORS.md Link out to list of contributors 2022-03-14 11:22:30 +01:00
CHANGELOG.md Release v15.0.1 2024-09-02 12:51:36 +02:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file (#52) 2019-04-01 09:30:27 +02:00
CONTRIBUTING.md Drop support for Python 3.7 2023-12-12 16:29:02 +01:00
LICENSE Initial commit from cookiecutter 2018-10-15 09:48:45 -04:00
MANIFEST.in Bug 1691116: Convert (most) rst files to markdown (#273) 2021-02-16 12:45:51 -05:00
Makefile CI: Use newer `detekt` 2024-04-17 17:48:29 +02:00
README.md Drop support for Python 3.7 2023-12-12 16:29:02 +01:00
pytest.ini Add Go log outputter 2024-01-17 11:13:15 +01:00
requirements_dev.txt Bump ruff from 0.5.0 to 0.6.1 2024-08-19 10:38:10 +02:00
setup.cfg Switch to ruff as linter/formatter 2024-03-05 22:44:42 +01:00
setup.py Add CI config to test on Python 3.11 and 3.12 2023-12-12 16:29:02 +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.

  • appdirs
  • Click
  • diskcache
  • Jinja2
  • jsonschema
  • 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