You support a trading application written in Python and hosted on App Engine flexible environment. You want to customize the error information being sent to Stackdriver Error Reporting. What should you do?
Select an option, then click Submit answer.
Reference / correct answer:
Use the Stackdriver Error Reporting API to write errors from your application to ReportedErrorEvent, and then generate log entries with properly formatted error messages in Stackdriver Logging.
Most accepted answer: D. Use the Stackdriver Error Reporting API to write errors from your application to ReportedErrorEvent, and then generate log entries with properly formatted error messages in Stackdriver Logging.
Community votes: C=6, D=9
@TNT87 - Answer is C, the link you shared has a pip install in the beginning which means Python requires installing library first. pip install --upgrade google-cloud-error-reporting upvoted 21 times TNT87 4 years, 1 month ago Ans C https://cloud.google.com/error-reporting/docs/setup/python i think you can see that 1 month ago answered it ok, the one with answer D was a mistake upvoted 1 times TNT87 4 years, 1 month ago App Engine flexible environment App Engine grants the Error Reporting Writer role by default. The Error Reporting library for Python can be used without needing to explicitly provide credentials. Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required. Yes anser is C https://cloud.google.com/error-reporting/docs/setup/python#app-engine upvoted 3 times ... ...
Ans C https://cloud.google.com/error-reporting/docs/setup/python i think you can see that 1 month ago answered it ok, the one with answer D was a mistake upvoted 1 times TNT87 4 years, 1 month ago App Engine flexible environment App Engine grants the Error Reporting Writer role by default. The Error Reporting library for Python can be used without needing to explicitly provide credentials. Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required. Yes anser is C https://cloud.google.com/error-reporting/docs/setup/python#app-engine upvoted 3 times ...
App Engine flexible environment App Engine grants the Error Reporting Writer role by default. The Error Reporting library for Python can be used without needing to explicitly provide credentials. Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required. Yes anser is C https://cloud.google.com/error-reporting/docs/setup/python#app-engine upvoted 3 times
Selected Answer: C Option C: Install Error Reporting library, run on App Engine flexible ✅ Keeps current deployment on App Engine flexible ✅ Error Reporting library allows customization of error data ✅ Can add custom fields, context, user information ✅ Minimal changes - just add library to existing app ✅ Works seamlessly with App Engine flexible ✅ Simple and direct solution ✅ No infrastructure changes needed upvoted 1 times
Selected Answer: D https://cloud.google.com/error-reporting/docs/setup/python#app-engine:~:text=Error%20Reporting%20is%20automatically%20enabled%20for%20App%20Engine%20flexible%20environment%20applications.%20No%20additional%20setup%20is%20required. "Error Reporting is automatically enabled for App Engine flexible environment applications. No additional setup is required." upvoted 1 times