aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichal Matloka <michal.matloka@softwaremill.com>2018-03-02 15:58:55 +0100
committerMichal Matloka <michal.matloka@softwaremill.com>2018-03-02 15:58:55 +0100
commitc9df2eda7c2f1da5bc4a8b56aac5d56e541a9042 (patch)
tree84ff38df2c6b1f38d713d629a4e3f5fb9dc0caeb /docs
parent48ee034116fa541fd92cba6db7ee8a0e447b9869 (diff)
downloadsttp-c9df2eda7c2f1da5bc4a8b56aac5d56e541a9042.tar.gz
sttp-c9df2eda7c2f1da5bc4a8b56aac5d56e541a9042.tar.bz2
sttp-c9df2eda7c2f1da5bc4a8b56aac5d56e541a9042.zip
fix
Diffstat (limited to 'docs')
-rw-r--r--docs/backends/prometheus.rst2
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::