Пример #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);
        }
Пример #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);
        }