Newrelic Python Agent: Error logging handled exceptions -


i've got python-based rest api. when exception hit during execution of api request, try catch exception, log it, , return generic error message along http error code appropriate actual cause (i.e. 400 if user makes , invalid request, 500 if request valid , fails server-side).

the issue i'm having becasue catching excpetions , logging them rather raising them, new relic python agent not logging of exceptions errors, useful feature.

i know can parse logs data want own analysis, i'd continue handle issues , somehow still see them in new relic without ton of work. ideas on how or if possible?

by default python agent picks unhandled exceptions, however, can override default behavior using api call:

newrelic.agent.record_exception()

you should read page on python agent api.

if have further questions, please don't hesitate ask.

regards,

adrienne kincaid

tse new relic, inc.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -