Skip to content

Instantly share code, notes, and snippets.

@oroce
Created February 6, 2014 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oroce/8847211 to your computer and use it in GitHub Desktop.
Save oroce/8847211 to your computer and use it in GitHub Desktop.
// default behaviour is statsdClient.set
godot.reactor()
.statsd()
// this will emit statsdClient.timer
godot.reactor()
.tagged( 'timer' )
.statsd({ type: 'timer' })
// this will emit statsdClient.inc or stasdClient.decr
godot.reactor()
.tagged( 'inc', 'decr' )
.statsd({ type: 'incdecr' })
// this will emit statsdClient.gauge
godot.reactor()
.tagged( 'gauge' )
.statsd({ type: 'gauge' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment