Maybe the configuration settings in your Azure environment doesn't match those you're using locally. This includes verifying the InstrumentationKey
and any other relevant settings in the TelemetryConfiguration
object.
You may need also to checl the InstrumentationKey
in the deployed version it may not be corresponding to the Application Insights resource you are expecting to see the data in.
Another point is, the Flush()
method in Application Insights SDK is asynchronous. In Azure Functions, if the function completes its execution before the telemetry data is sent, the data might be lost. You may think about implementing a delay to allow for the flush operation to complete.