Skip to content

Commit

Permalink
add apm
Browse files Browse the repository at this point in the history
  • Loading branch information
kbiernat committed Aug 13, 2018
1 parent 315fb91 commit b8c511d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@
CACHES = {
'default': env.cache(),
}

# APM
INSTALLED_APPS = INSTALLED_APPS + (
'elasticapm.contrib.django', )
MIDDLEWARE = (
'elasticapm.contrib.django.middleware.TracingMiddleware',
) + MIDDLEWARE

2 changes: 2 additions & 0 deletions requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
Django==1.11.7 # pyup: <2.0
gunicorn==19.7.1
gevent==1.2.2

elastic-apm==3.0.0

0 comments on commit b8c511d

Please sign in to comment.