Add support for viewing raw body requests
It would be great to see raw body request on analytics. Good for monitoring restful api calls (for example json payloads)
We are exploring how to implement this feature without compromising privacy. Thank you for all the feedback!
- Matt, Product Manager
I am using the approach as explained in my blog to solve the problem
Basically it involves storing the response in request message using message handler and retrieving the same in the class that implements ITelemetryInitialize.
This would be very helpful.
Mauricio Atanache G. commented
Speaking for everyone in my team +50
Marcelo Ramagem commented
Q: Are you using ASP.NET Standard or ASP.NET Core?
A: Neither - Node.js
Q: Would it help to see just incoming request bodies? Or is it outgoing requests too?
A: Incoming most important, outgoing just icing on the cake
Q: Would it help to see the response body too or is just the request fine?
A: Absolutely.. .body too please
Q: Do you only want to see the full body when there's a failure/exception?
A: Yes, absolutely.
Right now the transaction details aren't very useful when posting data (which is like 99% of our calls from react). We can see the path, but not the parameters being sent. this doesn't help at all when trying to find why a request is taking a long time because I cant see what the parameters were. Querystrings are not an option for us.
Jason Wisener commented
Would be great to be able to see the json response and request bodies, right now you can't really see the values that are getting sent to the server for an api endpoint call.
Edwardenis De Los Santos commented
I would be really usefull to trace where exceptions are coming from.
Kari Tuominen commented
This would help cases where you need to know what parameters client has send to API for example if exception occurs on server.
if I FTP into my App Service (running a Web API 2 stack), I can download the "failed request" XML files (e.g. fr000001.xml) and get a lot of insight (especially if I also grab the freb.xsl which formats the XML into a nice tabbed UI).
I discovered the request headers being used to POST to my api, and can see the JWT bearer token that was used.. but, I don't know what the JSON payload is. That's really important.
I get a lot of useless info about my 500 error, but.. no stack trace or anything really useful.
Guys, please add this
Please add this
Totally agreed with request, should be in there already. Essential for insight, now custom code is being written and rewritten over and over again to accomplish this.
Oh, god, please add this. Why isn't it there already?
Marcelo Ramagem commented
This should be a no brainer for app insights in azure functions. Easy way to view history of incoming payload requests seems obvious to me on so many levels.
Motti Mezei commented
Or some way to turn on network traces on an app service web app.
We want to see this in the sub-calls as part of the end to end transaction details. We have API calls that are received on the server and then in turn make sub- API calls to other APIs like MS Graph API and others. We can see the URL request that is made as the sub-call but not the body of the sub-call which would be really helpful.
Adding my vote to this. If my API generates a 400, I'd like to see what's been sent to it.
How can we troubleshoot failed requests from API Management if we have no ability to see the payload of the failed request?
At the moment I can see the request url but can't see the request body
Alex Martinez Mañé commented
Totally needed. View the json raw payload on azure portal insights monitoring