#pragma warning restore SA1401 // Fields must be private

        public DefaultMetricsBuilderFactory(DefaultSamplingReservoirProvider defaultSamplingReservoir)
        {
            DefaultSamplingReservoir = defaultSamplingReservoir;
            Apdex     = new DefaultApdexBuilder(defaultSamplingReservoir);
            Counter   = new DefaultCounterBuilder();
            Gauge     = new DefaultGaugeBuilder();
            Histogram = new DefaultHistogramBuilder(defaultSamplingReservoir);
            Meter     = new DefaultMeterBuilder();
            Timer     = new DefaultTimerBuilder(defaultSamplingReservoir);
        }
        public MetricContextTestFixture()
        {
            ApdexOptions = new ApdexOptions
            {
                Name = "apdex"
            };

            CounterOptions = new CounterOptions
            {
                Name = "counter"
            };

            GaugeOptions = new GaugeOptions
            {
                Name = "gauge"
            };

            HistogramOptions = new HistogramOptions
            {
                Name = "histogram"
            };

            MeterOptions = new MeterOptions
            {
                Name = "meter"
            };

            TimerOptions = new TimerOptions
            {
                Name = "timer"
            };

            var tags = new GlobalMetricTags
            {
                { "key1", "value1" },
                { "key2", "value2" }
            };

            var contextualTags = new ContextualMetricTagProviders
            {
                { "key1", () => new Guid().ToString() },
                { "key2", () => new Guid().ToString() }
            };

            var samplingProvider = new DefaultSamplingReservoirProvider(() => new DefaultForwardDecayingReservoir());

            Registry         = new DefaultMetricContextRegistry("context_label", tags, contextualTags);
            ApdexBuilder     = new DefaultApdexBuilder(samplingProvider);
            HistogramBuilder = new DefaultHistogramBuilder(samplingProvider);
            CounterBuilder   = new DefaultCounterBuilder();
            GaugeBuilder     = new DefaultGaugeBuilder();
            MeterBuilder     = new DefaultMeterBuilder();
            TimerBuilder     = new DefaultTimerBuilder(samplingProvider);
            Clock            = new StopwatchClock();
        }