def __init__(self):
    'Initiate Glean, load pings and metrics.'
    import glean
    logging.getLogger('glean').setLevel(logging.DEBUG)
    logger.debug('Initializing Glean...')
    glean.Glean.initialize(application_id='MozPhab', application_version=MOZPHAB_VERSION, upload_enabled=True, configuration=glean.Configuration(), data_dir=(Path(environment.MOZBUILD_PATH) / 'telemetry-data'))
    self._pings = glean.load_pings((environment.MOZPHAB_MAIN_DIR / 'pings.yaml'))
    self._metrics = glean.load_metrics((environment.MOZPHAB_MAIN_DIR / 'metrics.yaml'))
Initiate Glean, load pings and metrics.
def __init__(self):
    
    import glean
    logging.getLogger('glean').setLevel(logging.DEBUG)
    logger.debug('Initializing Glean...')
    glean.Glean.initialize(application_id='MozPhab', application_version=MOZPHAB_VERSION, upload_enabled=True, configuration=glean.Configuration(), data_dir=(Path(environment.MOZBUILD_PATH) / 'telemetry-data'))
    self._pings = glean.load_pings((environment.MOZPHAB_MAIN_DIR / 'pings.yaml'))
    self._metrics = glean.load_metrics((environment.MOZPHAB_MAIN_DIR / 'metrics.yaml'))