diff options
Diffstat (limited to 'app/services/metrics_service.rb')
-rw-r--r-- | app/services/metrics_service.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/metrics_service.rb b/app/services/metrics_service.rb index d27328f89cd..f39cc1a8534 100644 --- a/app/services/metrics_service.rb +++ b/app/services/metrics_service.rb @@ -4,7 +4,11 @@ require 'prometheus/client/formats/text' class MetricsService def prometheus_metrics_text - ::Prometheus::Client::Formats::Text.marshal_multiprocess(multiprocess_metrics_path) + if Feature.enabled?(:prom_metrics_rust) + ::Prometheus::Client::Formats::Text.marshal_multiprocess(multiprocess_metrics_path, use_rust: true) + else + ::Prometheus::Client::Formats::Text.marshal_multiprocess(multiprocess_metrics_path) + end end def metrics_text |