Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Testing in production with feature flags, canary deployments, synthetic monitoring, and chaos engineering. Use when implementing production observability or progressive delivery.
// Progressive rollout with LaunchDarkly/Unleash patternconst newCheckout = featureFlags.isEnabled('new-checkout', {
userId: user.id,
percentage: 10, // 10% of usersallowlist: ['beta-testers']
});
if (newCheckout) {
return<NewCheckoutFlow />;
} else {
return<LegacyCheckoutFlow />;
}
// Instant rollback on issuesawait featureFlags.disable('new-checkout');
Canary Deployment
# Flagger canary configapiVersion:flagger.app/v1beta1kind:Canaryspec:targetRef:apiVersion:apps/v1kind:Deploymentname:checkout-serviceprogressDeadlineSeconds:60analysis:interval:1mthreshold:5# Max failed checksmaxWeight:50# Max traffic to canarystepWeight:10# Increment per intervalmetrics:-name:request-success-ratethreshold:99-name:request-durationthreshold:500
Production is the ultimate test environment. Feature flags enable instant rollback. Canary catches issues before 100% rollout. Synthetic monitoring detects problems before users. Chaos engineering builds resilience. RUM shows real user experience.
With Agents: Agents monitor production, replay incidents as tests, run chaos experiments, and convert production insights to pre-production tests. Use agents to maintain continuous production quality.