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?
A.
Install the Stackdriver Error Reporting library for Python, and then run your code on a Compute Engine VM.
B.
Install the Stackdriver Error Reporting library for Python, and then run your code on Google Kubernetes Engine.
C.
Install the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment.
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.
@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
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
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
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."
wy not D?
While it's possible to use the Stackdriver Error Reporting API, it's easier and more straightforward to use the library designed specifically for the language of the application (Python, in this case).
https://cloud.google.com/error-reporting/docs/setup/python#install_the_client_library
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
C. Install the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment. This would allow you to customize the error information being sent to Stackdriver Error Reporting while keeping the application hosted on App Engine flexible environment.
C) for sure
As per Error Reporting setup instructions for App Engine Flexible: https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment
"If you'd like to customize the error information being sent to Error Reporting, you can use the instrumentation libraries available for a number of languages"
Which includes a step for installing Python client libraries https://cloud.google.com/error-reporting/docs/setup/python#installing_the_client_library
Ans C
There are two things asked here. One is Error Reporting enabled for App Engine Flex. It is based on this source - Ans D
Error Reporting Auto Enabled for App Engine Flex - Source - https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment
Second the question asks about customize error (not formatting the error). If you'd like to customize the error information being sent to Error Reporting, you can use the instrumentation libraries available for a number of languages: Source - https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment
For formatting the error then use option D - Source - https://cloud.google.com/error-reporting/docs/formatting-error-messages
You want to customize the error information being sent to Stackdriver Error Reporting.
As per Error Reporting setup instructions for App Engine Flexible: https://cloud.google.com/error-reporting/docs/setup/app-engine-flexible-environment
"If you'd like to customize the error information being sent to Error Reporting, you can use the instrumentation libraries available for a number of languages"
Which includes a step for installing Python client libraries https://cloud.google.com/error-reporting/docs/setup/python#installing_the_client_library
D is the answer.
https://cloud.google.com/error-reporting/docs/setup/python#app-engine
Error logs written to stderr are processed automatically by Error Reporting, without needing to use the Error Reporting library for Python directly.
If you're using the Error Reporting API, you can report error events from your application by writing them to ReportedErrorEvent. Doing this generates log entries with properly formatted error messages in Cloud Logging.
https://cloud.google.com/error-reporting/docs/formatting-error-messages
If you're using the Error Reporting API, you can report error events from your application by writing them to ReportedErrorEvent. Doing this generates log entries with properly formatted error messages in Cloud Logging. The resulting logName is formatted as follows:
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
muk5658
Highly Voted 2 years, 11 months agoTNT87
2 years, 10 months agoTNT87
2 years, 10 months agoMin3em
Most Recent 3 months, 3 weeks agotell3r
5 months, 2 weeks agojinaldesailive
7 months, 2 weeks agoalpha_canary
8 months, 3 weeks agojomonkp
10 months, 4 weeks agoanshad666
1 year, 6 months agoJonathanSJ
1 year, 9 months agoWhyIronMan
1 year, 10 months agoDoodleDo
1 year, 10 months agoenter_co
1 year, 11 months agomudot
1 year, 11 months agomudot
1 year, 11 months agopradoUA
2 years agoAzureDP900
2 years agozellck
2 years agoiamzeah
2 years, 3 months agonhadi82
2 years, 3 months ago