From bb22b4350e8830ba969c287be46db77a9ed38255 Mon Sep 17 00:00:00 2001 From: Teddy Sommavilla <36576716+wazazaby@users.noreply.github.com> Date: Mon, 6 Nov 2023 11:37:08 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d72b942..582e3ac 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ var requestsTotalCounter = metrics.NewCounter( ) var responseSizeHistogram = metrics.NewHistogram( - vimebu.Metric("response_size").String(), // response_size{} + vimebu.Metric("response_size").String(), // response_size ) // Registering the metric using the provided helpers. @@ -68,7 +68,7 @@ func getHTTPRequestCounter(host string) *metrics.Counter { if host != "" { b.Label("host", host) } - metric := b.String() // api_http_requests_total{} or api_http_requests_total{host="api.app.com"} + metric := b.String() // api_http_requests_total or api_http_requests_total{host="api.app.com"} return metrics.GetOrCreateCounter(metric) } ```