Skip to main content

Parser tools for Mozilla's Glean telemetry

Project description

Glean Parser

Parser tools for Mozilla’s Glean telemetry.

Features

Parses the metrics.yaml files for the Glean telemetry SDK and produces output for various integrations.

Documentation

The full documentation is available here.

Requirements

  • Python 3.7 (or later)

The following library requirements are installed automatically when glean_parser is installed by pip.

  • appdirs

  • Click

  • diskcache

  • inflection

  • 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

History

Unreleased

1.9.2 (2019-10-08)

  • BUGFIX: Don’t call is_internal_metric on Ping objects.

1.9.1 (2019-10-07)

  • Don’t include Glean internal metrics in the generated markdown.

1.9.0 (2019-10-04)

  • Glinter now warns when bug numbers (rather than URLs) are used.

  • BUGFIX: add HistogramType and MemoryUnit imports in Kotlin generated code.

1.8.4 (2019-10-02)

  • Removed unsupported labeled metric types.

1.8.3 (2019-10-02)

  • Fix indentation for generated Swift code

1.8.2 (2019-10-01)

  • Created labeled metrics and events in Swift code and wrap it in a configured namespace

1.8.1 (2019-09-27)

  • BUGFIX: memory_unit is now passed to the Kotlin generator.

1.8.0 (2019-09-26)

  • A new parser config, do_not_disable_expired, was added to turn off the feature that expired metrics are automatically disabled. This is useful if you want to retain the disabled value that is explicitly in the metrics.yaml file.

  • glinter will now report about superfluous no_lint entries.

1.7.0 (2019-09-24)

  • A “glinter” tool is now included to find common mistakes in metric naming and setup. This check is run during translate and warnings will be displayed. ⚠ These warnings will be treated as errors in a future revision.

1.6.1 (2019-09-17)

  • BUGFIX: GleanGeckoMetricsMapping must include LabeledMetricType and CounterMetricType.

1.6.0 (2019-09-17)

  • NEW: Support for outputting metrics in Swift.

  • BUGFIX: Provides a helpful error message when geckoview_datapoint is used on an metric type that doesn’t support GeckoView exfiltration.

  • Generate a lookup table for Gecko categorical histograms in GleanGeckoMetricsMapping.

  • Introduce a ‘Swift’ output generator.

1.4.1 (2019-08-28)

  • Documentation only.

1.4.0 (2019-08-27)

  • Added support for generating markdown documentation from metrics.yaml files.

1.3.0 (2019-08-22)

  • quantity metric type has been added.

1.2.1 (2019-08-13)

  • BUGFIX: includeClientId was not being output for PingType.

1.2.0 (2019-08-13)

  • memory_distribution metric type has been added.

  • custom_distribution metric type has been added.

  • labeled_timespan is no longer an allowed metric type.

1.1.0 (2019-08-05)

  • Add a special all_pings value to send_in_pings.

1.0.0 (2019-07-29)

  • First release to start following strict semver.

0.1.0 (2018-10-15)

  • First release on PyPI.

Project details


Release history Release notifications | RSS feed

This version

1.9.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glean_parser-1.9.2.tar.gz (158.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glean_parser-1.9.2-py2.py3-none-any.whl (42.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file glean_parser-1.9.2.tar.gz.

File metadata

  • Download URL: glean_parser-1.9.2.tar.gz
  • Upload date:
  • Size: 158.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for glean_parser-1.9.2.tar.gz
Algorithm Hash digest
SHA256 11840d4c2525207760f3736bf8effc4000c5a6901488f42555408bc09b1d5df4
MD5 8ded870e64eecd596343d99220a25176
BLAKE2b-256 c4798a54e846f336c8a5a5e60f4d5ce80fc74733ed6a58c83a8124a7ca2001d6

See more details on using hashes here.

File details

Details for the file glean_parser-1.9.2-py2.py3-none-any.whl.

File metadata

  • Download URL: glean_parser-1.9.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.2

File hashes

Hashes for glean_parser-1.9.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1b8fa3f93bbe89a968929ae44657e13d9ffa5c593fcf8a164fcd9ae7f830d099
MD5 a01e5418266a6ed7417f9bc6e38fe71e
BLAKE2b-256 a44ae38cd18e41d62a4af314fdfe7db191ea12f532b3abb0279f4b6b3d5f8aec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page