Esempio n. 1
0
        public override Counter <double> CreateDoubleCounter(string name, bool monotonic = true)
        {
            if (!this.doubleCounters.TryGetValue(name, out var counter))
            {
                counter = new CounterSdk <double>(name);
                this.doubleCounters.Add(name, counter);
            }

            return(counter);
        }
Esempio n. 2
0
        public override Counter <long> CreateInt64Counter(string name, bool monotonic = true)
        {
            if (!this.longCounters.TryGetValue(name, out var counter))
            {
                counter = new CounterSdk <long>(name);

                this.longCounters.Add(name, counter);
            }

            return(counter);
        }