mozilla / glean_parser

Tools for parsing the metadata for Mozilla's glean telemetry SDK

Home Page:https://mozilla.github.io/glean_parser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Tools for parsing the metadata for Mozilla's glean telemetry SDK

https://mozilla.github.io/glean_parser/

License:Mozilla Public License 2.0


Languages

Language:Python 81.3%Language:Jinja 9.4%Language:Kotlin 3.2%Language:Swift 1.6%Language:Go 1.4%Language:Rust 1.3%Language:Ruby 1.2%Language:Makefile 0.6%