Files
2012-02-21 01:15:00 -05:00

1 line
3.9 KiB
JSON

[{"user_id": 275, "stars": [{"date_created": 1300918742.303359, "user_id": 141}], "topic_id": 14827, "date_created": 1300918609.3631859, "message": "and it grabs the statsd server host and port from the django settings, and even checks a gargoyle switch to see if it *should* report stats", "group_id": 4827, "id": 421363}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1300918618.1689899, "message": "/me laughs giddily", "group_id": 4827, "id": 421365}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1300918554.1725259, "message": "For an app I'm working on now, I added a \"recorddeploy\" management command", "group_id": 4827, "id": 421352}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1300918565.9350519, "message": "so that, in my post-upgrade shell script, I can now say", "group_id": 4827, "id": 421354}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1300918577.8774281, "message": "% theapp/manage.py recorddeploy", "group_id": 4827, "id": 421358}, {"user_id": 3868, "stars": [], "topic_id": 14827, "date_created": 1300921632.1708729, "message": "Yussss! Sprinkle in drawAsInifinte for great victory", "group_id": 4827, "id": 421661}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1300922965.1763821, "message": "yeah, i did", "group_id": 4827, "id": 421769}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342849.3192921, "message": "def my_func():", "group_id": 4827, "id": 461619}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342774.2939041, "message": "https://gist.github.com/885656", "group_id": 4827, "id": 461603}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342923.838906, "message": "under stats.timers", "group_id": 4827, "id": 461636}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342834.9321139, "message": "@recordstats('prefix')", "group_id": 4827, "id": 461618}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342863.4007809, "message": "do_thing()", "group_id": 4827, "id": 461623}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342971.403578, "message": "(the util module checks a gargolye switch before firing)", "group_id": 4827, "id": 461645}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342773.3934021, "message": "A new bit of code: a stats-recording decorator", "group_id": 4827, "id": 461602}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342955.6798561, "message": "will need some tweaking for other environments -- I'm wrapping pystatsd in a util module for this project", "group_id": 4827, "id": 461641}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342906.5020909, "message": "recordsstats will record that this function was run (with the stat name \"my_func\")", "group_id": 4827, "id": 461631}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301342915.1231041, "message": "and record the duration of the wrapped function", "group_id": 4827, "id": 461633}, {"user_id": 3868, "stars": [], "topic_id": 14827, "date_created": 1301731787.1852701, "message": "You could add parameters for namespacing and sampling (like record this 1/1000th of the calls)", "group_id": 4827, "id": 507822}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301778406.7514889, "message": "my stats_util does namespacing (I have a STATS_NAMESPACE setting in local_settings.py)", "group_id": 4827, "id": 510429}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301778483.493552, "message": "so for function 'do_foo', the eventual stat will be STATS_NAMESPACE + recordstats_prefix + func_name", "group_id": 4827, "id": 510433}, {"user_id": 275, "stars": [], "topic_id": 14827, "date_created": 1301778500.4227819, "message": "so \"myservice.dev.prefix.do_foo\"", "group_id": 4827, "id": 510434}]