Skip to content

FixedSampling is not reliable since itemCount is set with SamplingScore rather than SamplingPercentage. #535

@anandsugumaran

Description

@anandsugumaran

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions