Thank you for this question. Please find the response below:
- You are correct, with agent version > 3.4.0, the rate limit sampling is default. Therefore, the ingestion sampling would not be in effect. Ingestion sampling is only supported if no other sampling is in effect. Please see this link for an overview.
- No, it would not work, as mentioned in the point above, as sampling is enabled. When you set
APPLICATIONINSIGHTS_SAMPLING_PERCENTAGE
to 100%, it basically disables sampling (collect all data). - No, when updating the app setting (like environment variable), an app restart gets triggered if the application is hosted as Azure Web Apps. It is because the environment variables are read at application start for AppInsights configuration and loaded in memory.
Hope this helps. Please let me know if you have any questions.