Beispiel #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);
        }
Beispiel #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);
        }