getconversio / redis-metrics

Easy metric tracking and aggregation using Redis
http://getconversio.github.io/redis-metrics/
MIT License
28 stars 8 forks source link

Add support for extra event object #4

Closed dlebech closed 9 years ago

dlebech commented 9 years ago

Add support for an optional event object when incrementing a counter. The event object is internally stored in Redis using a sorted set.

The event object is useful for keeping counting a single event in a specific context. For example, for a page view counter we might want to keeps track of the count for individual pages.