Skip to content

Commit

Permalink
Setting up OpBeat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Lavin committed Jan 15, 2016
1 parent 347c2f6 commit cf0e331
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -3,6 +3,7 @@ Django==1.9.1
django-dotenv==1.3.0
gunicorn==19.4.5
markovify==0.2.5
opbeat==3.2
Pillow==3.1.0
psycopg2==2.6.1
requests==2.9.1
Expand Down
16 changes: 16 additions & 0 deletions taytay/settings.py
Expand Up @@ -178,3 +178,19 @@
'django.contrib.auth.hashers.SHA1PasswordHasher',
'django.contrib.auth.hashers.MD5PasswordHasher',
)

# Opbeat
OPBEAT = {
'ORGANIZATION_ID': os.environ.get('OPBEAT_ORGANIZATION_ID'),
'APP_ID': os.environ.get('OPBEAT_APP_ID'),
'SECRET_TOKEN': os.environ.get('OPBEAT_SECRET_TOKEN'),
}

if all(OPBEAT.values()):
INSTALLED_APPS += (
'opbeat.contrib.django',
)

MIDDLEWARE_CLASSES = (
'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
) + MIDDLEWARE_CLASSES

0 comments on commit cf0e331

Please sign in to comment.