Check the value for metric-set
This commit is contained in:
parent
bf28a0deb9
commit
4d1044bc16
1 changed files with 6 additions and 0 deletions
|
|
@ -350,6 +350,12 @@ values are the values."
|
||||||
'(gauge))
|
'(gauge))
|
||||||
(error "can only set gauge metrics"))
|
(error "can only set gauge metrics"))
|
||||||
|
|
||||||
|
(unless (number? value)
|
||||||
|
(raise-exception
|
||||||
|
(make-exception-with-message
|
||||||
|
(simple-format #f "metric-set value must be a number: ~A"
|
||||||
|
value))))
|
||||||
|
|
||||||
(call-with-blocked-asyncs
|
(call-with-blocked-asyncs
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-mutex (metric-mutex metric)
|
(with-mutex (metric-mutex metric)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue