Exemplo n.º 1
0
        /// <inheritdoc/>
        public override ObserverMetric <double> CreateDoubleObserver(string name, bool absolute = true)
        {
            if (!this.doubleObservers.TryGetValue(name, out var observer))
            {
                observer = new ObserverMetricSdk <double>(name);

                this.doubleObservers.Add(name, observer);
            }

            return(observer);
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public override ObserverMetric <long> CreateInt64Observer(string name, bool absolute = true)
        {
            if (!this.longObservers.TryGetValue(name, out var observer))
            {
                observer = new ObserverMetricSdk <long>(name);

                this.longObservers.Add(name, observer);
            }

            return(observer);
        }