Created
February 26, 2020 15:02
-
-
Save badboy/87da8703de9a68812930d1756964856d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from glean import Glean, Configuration | |
from glean import (load_metrics, | |
load_pings) | |
config = Configuration() | |
config.ping_tag = "mozregression-test-tag" | |
config.log_pings = True | |
Glean.initialize( | |
application_id="mozregression", | |
application_version="0.1.0", | |
upload_enabled=True, | |
configuration=config, | |
data_dir=Path("./data") | |
) | |
Glean.set_upload_enabled(True) | |
pings = load_pings("pings.yaml") | |
metrics = load_metrics("metrics.yaml") | |
metrics.used.default.os.set("Mac") | |
pings.used.submit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment