Skip to content

DarrenN/racket-dogstatsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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