Skip to content

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

License

Notifications You must be signed in to change notification settings

a-detiste/glean_parser

 
 

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.2%
  • Jinja 9.7%
  • Kotlin 2.5%
  • Rust 1.7%
  • Swift 1.6%
  • Go 1.5%
  • Other 1.8%