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
};

@@ -69,19 +69,19 @@
 ize(
-_container,
+) %7B%0A  const
  app
@@ -89,19 +89,47 @@
 ication 
-) %7B
+= arguments%5B1%5D %7C%7C arguments%5B0%5D;
 %0A  const

Fix Ember 2.1 initializer arity deprecation warning