Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include request body for 4XX status codes #1198

Open
cirezd opened this issue Apr 4, 2023 · 1 comment
Open

How to include request body for 4XX status codes #1198

cirezd opened this issue Apr 4, 2023 · 1 comment

Comments

@cirezd
Copy link

cirezd commented Apr 4, 2023

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!

@lzchen lzchen added the azure Microsoft Azure label Apr 4, 2023
@lzchen
Copy link
Contributor

lzchen commented Apr 4, 2023

@jeremydvoss

@lzchen lzchen added feature-request and removed azure Microsoft Azure labels Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants