Setting up a canary release with an automatic latency and error-rate gate for an ASP.NET Core API on Azure.
Ship the new version alongside the old and send it a small share of traffic (5–10%) using App Service deployment slot traffic routing, Container Apps revision weights or gateway weights (Front Door, APIM, YARP). Tag telemetry with the version (application_Version / service.version) so Application Insights can compare canary and stable p95 and error rate over the same window. A pipeline stage (Azure DevOps gate or a GitHub Actions job running a KQL query, or an Azure Monitor alert) waits [10–30 minutes]; if canary p95 is more than [20%] above stable or errors exceed the SLO, it sets the weight back to 0 automatically, otherwise it steps up (10% → 50% → 100%). Keep risky features behind feature flags (Azure App Configuration) so you can turn one off without redeploying. Size the canary so it gets enough requests for a meaningful comparison.
Checks that the prevention is concrete and they know how it works, not just a buzzword.
Last updated 23 Nov 2026.