How do I add custom Global Telemetry initializer to logs sent to Application Insights from Azure Function Apps?
In Azure App Services I could add them in the Configure section of the Startup.cs
var defaultTelemetryConfig = app.ApplicationServices.GetService<TelemetryConfiguration>();
defaultTelemetryConfig.TelemetryInitializers.Add(new CustomInitializer());
How do I achieve the same in Azure Function App? I need to add some extra properties to all logs that are being put in App Insights, and this includes the logs which are automatically logged by App Insights (for e.g. Dependency Logs, Unhandled exceptions from Functions, requests, etc.).