You actual configured sampleSettings incorrectly. To only keep trace and exception and trace details, it should be configured with includeTypes set:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"initialSamplingPercentage": 100,
"maxSamplingPercentage": 100,
"minSamplingPercentage": 100,
"samplingPercentageIncreaseTimeout": "00:00:00",
"samplingPercentageDecreaseTimeout": "00:00:00",
"includedTypes": "Trace;Exception",
"excludedTypes": ""
}
}
}
}
In this example, the includedTypes property is set to Trace;Exception, which means that only trace and exception details will be included in the telemetry data. The excludedTypes property is set to an empty string, which means that no other telemetry types will be excluded.
You can find more information about configuring sampling in Application Insights in the official documentation.