diff options
Diffstat (limited to 'docs/backends/prometheus.rst')
-rw-r--r-- | docs/backends/prometheus.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/backends/prometheus.rst b/docs/backends/prometheus.rst index 8b89a23..9de7886 100644 --- a/docs/backends/prometheus.rst +++ b/docs/backends/prometheus.rst @@ -23,7 +23,7 @@ You can disable request histograms by passing ``None`` returning function:: This backend also offers ``Gauge`` with currently in-progress requests number. It uses by default ``sttp_requests_in_progress`` name, defined in ``PrometheusBackend.DefaultRequestsInProgressGaugeName``. It is possible to define custom gauge name by passing function mapping request to gauge name:: - implicit val sttpBackend = PrometheusBackend(AkkaHttpBackend(), requestToHistogramNameMapper = request => Some(request.uri.host)) + implicit val sttpBackend = PrometheusBackend(AkkaHttpBackend(), requestToInProgressGaugeNameMapper = request => Some(request.uri.host)) You can disable request in-progress gauges by passing ``None`` returning function:: |