Description
LastModifiedTime --> We are releasing a feature called "Rolling updates". When customers set this property on their site, every site update will be gradually rolled out. As such, there will be multiple "versions" of their site up and running. To make this behavior easier to monitor, I want to emit "LastModifiedTime" in Application Insights and Shoebox so that customers can create custom queries to understand which versions are up an running and what logs are associated with each version.
DeploymentId --> we are releasing an internal feature called "Functions deployment manager". It is essentially an orchestrator for deployments. One step in this deployment orchestration is called, "PreDeploymentValidation". Here, we will spin up an inert instance of the host called the Validator pod. If this specialization results in any startup errors, we will fail deployment. So that customers can access any startup exceptions, we want to direct them to go to app insights and filter for a specific deployment id associated with the validator pod.
LastModifiedTime is already present in the host startup context: azure-functions-host/src/WebJobs.Script.WebHost/Models/HostAssignmentContext.cs at 49e1420b87b9d4a867089c968cddeb5eca288cc0 · Azure/azure-functions-host