DarrenN / racket-dogstatsd

DogStatsD Client for Racket

Home Page:https://darrenn.github.io/racket-dogstatsd/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

DogStatsD Client for Racket

https://darrenn.github.io/racket-dogstatsd/

License:Other


Languages

Language:Racket 100.0%