opencensus-python icon indicating copy to clipboard operation
opencensus-python copied to clipboard

How to include request body for 4XX status codes

Open cirezd opened this issue 2 years ago • 1 comments

Hello everyone,

I have an API using the fastAPI OpenCensus Instrumentation and I am sending the data to Azure Application Insights. I am wondering how to include the request body for post requests that result in a 4XX status code? Our customers embed our application into their website and seeing the body for 404 or 422 status codes would help to debug their issues quite a bit.

I use the following packages: opencensus-ext-fastapi==0.1.0 opencensus-ext-logging==0.1.1 opencensus-ext-azure==1.1.8

Thanks!

cirezd avatar Apr 04 '23 09:04 cirezd

@jeremydvoss

lzchen avatar Apr 04 '23 19:04 lzchen