Tools for parsing the metadata for Mozilla's glean telemetry SDK
Перейти к файлу
Arkadiusz Komarzewski fe658d3648 Send internal server metrics only in events ping 2024-05-08 11:49:01 +02:00
.circleci Add Go log outputter 2024-01-17 11:13:15 +01:00
.github Bug 1703818: Update HISTORY.rst to CHANGELOG.md (#306) 2021-04-08 11:00:35 -04:00
docs Mark the Glean team as author of this package 2022-03-14 11:22:30 +01:00
glean_parser Set a default empty array if value is missing 2024-05-06 15:11:04 +02:00
server_telemetry Send internal server metrics only in events ping 2024-05-08 11:49:01 +02:00
tests Replace use of deprecated `datetime.datetime.utcnow` 2024-05-02 14:45:30 +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 v14.1.1 2024-05-03 10:25:43 +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 Use importlib.metadata instead of deprecated pkg_resources 2024-05-02 14:45:30 +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