Exemplo 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);
        }
Exemplo 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);
        }