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

export function initialize(_container, application ) {
  const { metricsAdapters = {} } = config;
  const { environment = 'development' } = config;
  const options = { metricsAdapters, environment };

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

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

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

export function initialize() {
  const application = arguments[1] || arguments[0];
  const { metricsAdapters = {} } = config;
  const { environment = 'development' } = config;
  const options = { metricsAdapters, environment };

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

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

Fix Ember 2.1 initializer arity deprecation warning
Fix Ember 2.1 initializer arity deprecation warning