#lang racket/base
(require racket/list
dogstatsd)
(with-timer #:name "rkt.timer" #:tags '("proc:send-times" "proc:with-timer")
(let ([xs (range 50)])
(for ([i xs])
(counter "rkt.counter" i #:tags '("proc:send-times"
"aeon:12")
#:sample-rate 0.25))))
You can see a simple example of with-timer
in test.rkt
and all the of statsd functions are available.
Note: Requires Racket 6.3 and above.
Read the docs here https://darrenn.github.io/racket-dogstatsd/index.html
Build the docs with:
$ raco scribble --html +m --dest docs --dest-name index scribblings/dogstatsd.scrbl