public MetricsJob(IServiceScopeFactory serviceScopeFactory, MetricsOptions options, ILogger <MetricsJob> logger)
 {
     _logger = logger;
     _serviceScopeFactory = serviceScopeFactory;
     _options             = options;
 }
 public CustomMetricsMiddleware(IServiceScopeFactory serviceScopeFactory, MetricsOptions options)
 {
     _serviceScopeFactory = serviceScopeFactory;
     _enabled             = options.Enabled;
 }