I am wondering if the application insights data will get sampled if sent from NLog using Application Insights NLog target.
I have seen this page Microsoft documentation, Sampling in Application Insights, which talks about how we can control the telemetry sampling from ASP.NET/ ASP.NET Core projects, but I couldn't find anything which talks about sampling of data if the logs were sent by NLog.
https://github.com/microsoft/ApplicationInsights-dotnet-logging
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<extensions>
<add assembly="Microsoft.ApplicationInsights.NLogTarget" />
</extensions>
<targets>
<target xsi:type="ApplicationInsightsTarget" name="aiTarget">
<instrumentationKey>Your_Resource_Key</instrumentationKey> <!-- Only required if not using ApplicationInsights.config -->
<contextproperty name="threadid" layout="${threadid}" /> <!-- Can be repeated with more context -->
</target>
</targets>
<rules>
<logger name="*" minlevel="Trace" writeTo="aiTarget" />
</rules>
</nlog>