Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Querystring passed to Azure Function is not logged by Application Insights

We have an Http triggered Azure Function that takes parameters both from the url and the querystring, e.g. url pattern "/customers/{customerid}" and then a parameter "includeorderdata=true" can be added to the querystring. So the incoming url would be https://ourazurefunction/api/customers/12345?includeorderdata=true.

In Application Insights the url part is being logged but we cannot see the querystring anywhere.

like image 776
Mathias Rönnlund Avatar asked Oct 23 '25 14:10

Mathias Rönnlund


1 Answers

The default http request auto-collector specifically removes the query string and I don't see any option to include it. Code reference. Here is the open github issue. Unfortunately nothing much can be done at this moment. As an alternative, you can log custom telemetry from your code as an workaround for the time-being (note only for C# or JavaScript based function).

like image 111
krishg Avatar answered Oct 26 '25 13:10

krishg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!