My goal was to capture any Java exception in my production application and report it to Stackdriver Error Reporting for automatic exception monitoring and alerting.
I use the very simple Stackdriver Error Reporting report API: just send error stack traces using an HTTP POST request and an API key.
After creating a project and getting an API key in the Google Cloud Console, I instrumented my Play Framework application to catch all exceptions, format them in the expected structure and POST them to Stackdriver. (make sure you are using at least JDK v1.7)
Here is the code I added to my main application controller:
A short amount of time after deploying this code, I started receiving alerts that new errors were occurring in my production application:
I was not aware of these application errors, now I have better visibility into their impact and will be able to prioritize what to fix.
My website (Cadeaux entre nous, to organize Secret Santas), has been running on Heroku for years and has huge usage spikes around christmas. This will help me make it more stable.
Disclaimer: I am a Product Manager at Google, working on Stackdriver
Are you always able to tell time after having checked your smartphone?
Very often, I’m not. Yet, time is displayed very big on the unlock screen and is always visible at the top.
When using my smartphone and when I don’t want to explicitly check the time, I don’t pay any attention to the clock. It can be similar to the “banner blindness” phenomenon.
What if the time could be printed into my mind without doing any effort?
I wanted to experiment around this idea. In a short time, I created a live wallpaper for Android which color changes over the hour.
I’m sure that after having checked the smartphone, we are able to tell what color was the background. And because a given color corresponds to a given number of minutes, we can approximately guess the time. The tint of the background color depends on the minutes : 0 min is red (0°), 30 min is turquoise (180°)… I think that the hour is not important, most of the time, we are able to guess the hour.
Of course, it requires a learning time. A time for our brain to learn the bijection between colors and minutes. This experiment will test if it is easily possible.