DogStatsD Client for Racket
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
private
scribblings
.gitignore
.travis.yml
LICENSE.txt
README.md
info.rkt
main.rkt
test.rkt

README.md

DogStatsD

Build Status Coverage Status

DogStatsD client for Racket

DataDog

#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.

Documentation

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