Skip to content

Commit

Permalink
Merge pull request #17 from Ilhasoft/feature/monitoring
Browse files Browse the repository at this point in the history
Added elasticapm and sentry
  • Loading branch information
dyohan9 committed Jan 26, 2021
2 parents ce6468c + 1fa4190 commit fe45d7d
Show file tree
Hide file tree
Showing 4 changed files with 203 additions and 60 deletions.
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pillow = "~=8.0.1"
filetype = "~=1.0.7"
django-cors-headers = "~=3.6.0"
whitenoise = "~=5.2.0"
sentry-sdk = "~=0.13.2"
elastic-apm = "~=5.9.0"

[requires]
python_version = "3.6"
161 changes: 102 additions & 59 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ You can set environment variables in your OS, write on ```.env``` file or pass v
| LANGUAGE_CODE | ```string``` | ```en-us``` | A string representing the language code for this installation.This should be in standard [language ID format](https://docs.djangoproject.com/en/2.0/topics/i18n/#term-language-code).
| TIME_ZONE | ```string``` | ```UTC``` | A string representing the time zone for this installation. See the [list of time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
| STATIC_URL | ```string``` | ```/static/``` | URL to use when referring to static files located in ```STATIC_ROOT```.
| CSRF_COOKIE_DOMAIN | ```string``` | ```None``` | The domain to be used when setting the CSRF cookie.
| CSRF_COOKIE_SECURE | ```boolean``` | ```False``` | Whether to use a secure cookie for the CSRF cookie.
| OIDC_RP_SERVER_URL | ```string``` | ```None``` | Open ID Connect Server URL, example: https://accounts.weni.ai/auth/.
| OIDC_RP_REALM_NAME | ```string``` | ```None``` | Open ID Connect Realm Name.
| OIDC_RP_CLIENT_ID | ```string``` | ```None``` | OpenID Connect client ID provided by your OP.
Expand All @@ -44,6 +46,14 @@ You can set environment variables in your OS, write on ```.env``` file or pass v
| SEND_EMAILS | ```boolean``` | ```False``` | Send emails flag.
| INTELIGENCE_URL | ```string``` | ```https://bothub.it/``` | Specify the URL of the intelligence service.
| FLOWS_URL | ```string``` | ```https://new.push.al/``` | Specify the URL of the flows service.
| USE_SENTRY | ```bool``` | ```False``` | Enable Support Sentry
| SENTRY_URL | ```string``` | ```None``` | URL Sentry
| APM_DISABLE_SEND | ```bool``` | ```False``` | Disable sending Elastic APM
| APM_SERVICE_DEBUG | ```bool``` | ```False``` | Enable APM debug mode
| APM_SERVICE_NAME | ```string``` | ```''``` | APM Service Name
| APM_SECRET_TOKEN | ```string``` | ```''``` | APM Secret Token
| APM_SERVER_URL | ```string``` | ```''``` | APM URL
| ENVIRONMENT | ```string``` | ```production``` | Specify the environment you are going to run, it is also used for sentry


## License
Expand Down
Loading

0 comments on commit fe45d7d

Please sign in to comment.