private Metric GetMetric(MetricIdentifier identifier)
        {
            lock (_metrics)
            {
                if (!_metrics.ContainsKey(identifier))
                {
                    var metric = _telemetryClient.GetMetric(identifier.ToString());
                    _metrics[identifier] = metric;
                }

                return(_metrics[identifier]);
            }
        }
        public void CountEvent(MetricIdentifier identifier)
        {
            var name = identifier.ToString();

            _telemetryClient.TrackEvent(name);
        }