import config from '../config/environment';

export function initialize(_container, application ) {
  const { metricsAdapters } = config;

  application.register('config:metrics', metricsAdapters, { instantiate: false });
  application.inject('service:metrics', 'metricsAdapters', 'config:metrics');
}

export default {
  name: 'metrics',
  initialize
};

import config from '../config/environment';

export function initialize(_container, application ) {
  const { metricsAdapters = {} } = config;

  application.register('config:metrics', metricsAdapters, { instantiate: false });
  application.inject('service:metrics', 'metricsAdapters', 'config:metrics');
}

export default {
  name: 'metrics',
  initialize
};

Fix issue with addon breaking on install
Fix issue with addon breaking on install

Closes #27
