When FixedRateSampling is enabled and sampling percentage is set while tracking the events, sampleRate in the JSON is set with SampleScore rather than the sampling percentage.
Ex, If the sampling percentage is set as 100 then the itemCount is supposed to be 1. Since sampling percentage(100) is overwritten with the samplescore (hash of the operationid = 11.104063601747184) , itemCount is showing the value of 100/sample score (100/11=9) which might not makes sense.
The issue is present in the below class and line no is 116.
Class: com.microsoft.applicationinsights.internal.channel.sampling.FixedRateTelemetrySampler
When FixedRateSampling is enabled and sampling percentage is set while tracking the events, sampleRate in the JSON is set with SampleScore rather than the sampling percentage.
Ex, If the sampling percentage is set as 100 then the itemCount is supposed to be 1. Since sampling percentage(100) is overwritten with the samplescore (hash of the operationid = 11.104063601747184) , itemCount is showing the value of 100/sample score (100/11=9) which might not makes sense.
The issue is present in the below class and line no is 116.
Class: com.microsoft.applicationinsights.internal.channel.sampling.FixedRateTelemetrySampler