1​. Install pyrollbar with pip:

pip install rollbar

2​. In your ini file (e.g. production.ini), add rollbar.contrib.pyramid to the end of your pyramid.includes:

[app:main]
pyramid.includes =
    pyramid_debugtoolbar
    rollbar.contrib.pyramid

3​. Add these rollbar configuration variables:

[app:main]
rollbar.access_token = {{ server_access_token }}
rollbar.environment = production
rollbar.branch = master
rollbar.root = %(here)s

4​. Send a test message using pshell.

$ pshell development.ini
> import rollbar
> rollbar.report_message("hello world")