2.3.0 Rollbar
0. Learning Materials
Video: Week 2 - Rollbar
Andrew's repo: week-2-rollbar
Task List
Update the backend-container of
docker-compose
Env Variables
backend
HONEYCOMB_API_KEYOTEL_SERVICE_NAMEOTEL_EXPORTER_OTLP_ENDPOINTOTEL_EXPORTER_OTLP_HEADERSAWS_XRAY_URLAWS_XRAY_DAEMON_ADDRESSAWS_DEFAULT_REGIONAWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYROLLBAR_ACCESS_TOKEN
x-ray daemon
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_REGION
1. Workflow
1. Implement Rollbar
1.1. Update requirements.txt
Rollbar is an error monitoring platform, similar to all the other observability tools we have implemented so far - AWS X-Ray, CloudWatch and Honeycomb.
Now, run
pip install -r requirements.txtso the Rollbar libraries are installed locally.
1.2. Implement rollbar in app.py
Below is the original code provided by Rollbar to setup Rollbar SDK. However, the Flask server will break cause it's buggy.
In order to add the working code to app.py across the file where appropriate, refer to:
the working code for
init_rollbar()
Also refer to the troubleshooting log "Bug Fix: pyrollbar: No access_token provided." here.
2. Update the backend-container of docker-compose
Update the environment variable for the backend-container in docker.compose.
Then run docker-compose.
Last updated