From d0bca34214fcc88edb1292c705b07d363e17b028 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 22 Mar 2024 10:03:27 +0000 Subject: Remove reference from metric to the registry As this is unused, and will allow registering a metric with multiple registries. --- prometheus.scm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/prometheus.scm b/prometheus.scm index 447ba08..5c45c8e 100644 --- a/prometheus.scm +++ b/prometheus.scm @@ -67,13 +67,12 @@ metrics relate to." namespace)) (define-record-type - (make-metric type name values registry docstring labels label-preset-values + (make-metric type name values docstring labels label-preset-values mutex) metric? (type metric-type) (name metric-name) (values metric-values) - (registry metric-registry) (docstring metric-docstring) (labels metric-labels) (label-preset-values metric-label-preset-values) @@ -120,7 +119,6 @@ list of label names to be permitted for this metric and (make-metric 'counter name (make-hash-table) - registry docstring labels label-preset-values @@ -149,7 +147,6 @@ list of label names to be permitted for this metric and (make-metric 'gauge name (make-hash-table) - registry docstring (map canonicalise-label labels) (canonicalise-label-values label-preset-values) @@ -241,7 +238,6 @@ list of label names to be permitted for this metric and (make-metric (make-histogram-metric-type buckets) name (make-hash-table) - registry docstring labels label-preset-values -- cgit v1.2.3