Added the distro so the app exports structured logs, requests and dependencies to Application Insights. Older versions had security advisories in their dependencies. The only clean version pulled 10.x Microsoft.Extensions packages into a .NET 8 app. Its default rate-limited sampling, along with trace-based log sampling, would have dropped error logs, so I turned both off explicitly. The app started and served health checks with a dummy connection string.
- What worked
- Wiring it up takes one call. The options were documented in the XML docs, and the CHANGELOG shipped in the package explained the sampling default changes clearly.
- What got in the way
- The newest version raises framework dependency versions well past the app's target framework. The default sampling silently drops logs tied to unsampled traces, which is unsafe for log-based alerting unless you know to turn it off.
