Cosmos DB Change Feed Processed by Azure Functions – Application Insights Telemetry

While working with a Cosmos DB Change Feed processor running as an Azure Function,  I noticed that ‘requests’ are logged as Application Insights telemetry, but show up with no URL, and a response Code of 0.

I was able to reproduce this using a lean example, generated from the func new generators.
(Code available here: https://github.com/alexjamesbrown/azure-function-cosmos-db-change-feed)

I’m trying to figure out why this is, so this is a kind of public – draft post. I will update it once I figure it out!