public static MetricsBuilder AddServerTimingReporter(this MetricsBuilder builder,
                                                             Action <ServerTimingReporterOptions> configureAction)
        {
            if (configureAction == null)
            {
                throw new ArgumentNullException(nameof(configureAction));
            }

            builder.AddServerTimingReporter();
            builder.Services.Configure(configureAction);

            return(builder);
        }