You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,7 +46,7 @@ before running this code, take a look at
47
46
All code in this blog post is available open source under the MIT license
48
47
on GitHub under the
49
48
[monitor-flask-apps directory of the blog-code-examples repository](https://github.com/fullstackpython/blog-code-examples).
50
-
Use and abuse the source code as you like for your own applications.
49
+
Use and abuse the source code as you desire for your own applications.
51
50
52
51
53
52
## Installing Dependencies
@@ -56,16 +55,35 @@ Use and abuse the source code as you like for your own applications.
56
55
pip install flask==0.12.2 pyrollbar==0.13.12
57
56
```
58
57
58
+
59
59
## Building Our Flask App
60
60
61
61
62
62
Create a new directory
63
63
(error occurs but we dont see it)
64
64
65
+
65
66
## Handling Errors
66
-
(sign up for Rollbar)
67
+
Head to [Rollbar's homepage](https://rollbar.com/) so we can add their
68
+
hosted monitoring tools to our oft-erroring Flask app.
69
+
70
+
<imgsrc="/img/170717-monitor-flask-apps/rollbar-homepage.png"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#ccc"alt="Rollbar homepage in the web browser.">
71
+
72
+
Click the "Sign Up" button in the upper right-hand corner. Enter your
73
+
email address, a username and the password you want on the sign up page.
74
+
75
+
<imgsrc="/img/170717-monitor-flask-apps/sign-up.jpg"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#ccc"alt="Enter your basic account information on the sign up page.">
76
+
77
+
After the sign up page you'll get to the onboarding flow where you can
78
+
enter a project name and select a programming language. For project
79
+
name enter "Echo" and select that you are monitoring a Python app.
80
+
81
+
<imgsrc="/img/170717-monitor-flask-apps/create-new-project.png"width="100%"class="technical-diagram img-rounded"style="border:1pxsolid#ccc"alt="Create a new project named 'echo' and select Python as the programming language.">
82
+
83
+
67
84
(links to Python docs)
68
85
86
+
69
87
## Testing Error Handling
70
88
71
89
@@ -75,7 +93,8 @@ Flask application. Next you will want to add monitoring to your more
75
93
complicated web apps. You can also check out some of Rollbar's more
0 commit comments