Skip to content

Commit

Permalink
Bug 775534 - Add statsd logging for requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rik committed Jul 20, 2012
1 parent 3e5eb41 commit 6e7ac6d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@
[submodule "vendor-local/src/django-dnt"]
path = vendor-local/src/django-dnt
url = https://github.com/mozilla/django-dnt.git
[submodule "vendor-local/src/django-statsd"]
path = vendor-local/src/django-statsd
url = git://github.com/andymckay/django-statsd.git
[submodule "vendor-local/src/pystatsd"]
path = vendor-local/src/pystatsd
url = git://github.com/jsocol/pystatsd.git
2 changes: 2 additions & 0 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ Babel>=0.9.4
-e git://github.com/fwenzel/django-mozilla-product-details#egg=django-mozilla-product-details

python-memcached==1.45

django-statsd-mozilla==0.3.5
3 changes: 3 additions & 0 deletions settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ def JINJA_CONFIG():
'lib/product_details_json')

MIDDLEWARE_CLASSES = (
'django_statsd.middleware.GraphiteRequestTimingMiddleware',
'django_statsd.middleware.GraphiteMiddleware',
'funfactory.middleware.LocaleURLMiddleware',
#'multidb.middleware.PinningRouterMiddleware',
'django.middleware.common.CommonMiddleware',
Expand All @@ -371,6 +373,7 @@ def JINJA_CONFIG():
'funfactory', # Content common to most playdoh-based apps.
'jingo_minify',
'tower', # for ./manage.py extract (L10n)
'django_statsd',

# Django contrib apps
'django.contrib.auth',
Expand Down
5 changes: 5 additions & 0 deletions settings/local.py-dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ EMAIL_HOST_PASSWORD = ''
EMAIL_HOST = ''
EMAIL_PORT = 25
EMAIL_USE_TLS = False

STATSD_HOST = ''
STATSD_PORT = 8125
STATSD_PREFIX = 'bedrock'
STATSD_CLIENT = 'django_statsd.clients.normal'
1 change: 1 addition & 0 deletions vendor-local/src/django-statsd
Submodule django-statsd added at d77e1c
1 change: 1 addition & 0 deletions vendor-local/src/pystatsd
Submodule pystatsd added at 3e7816
2 changes: 2 additions & 0 deletions vendor-local/vendor.pth
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ src/basket-client
src/feedparser/feedparser
src/django-recaptcha
src/django-dnt
src/django-statsd
src/pystatsd
packages/requests
packages/certifi
packages/chardet
Expand Down

0 comments on commit 6e7ac6d

Please sign in to comment.