Page MenuHomePhabricator

[EPIC] Increase coverage of sampling tests
Open, MediumPublic

Description

As a Instrument Owner
I need to know that the Metrics Platform sampling log works as advertised
So that I can be confident while deploying my instrument
And that I can be confident while reconfiguring my instrument

Background

In T304379#9400845, @mpopov broke down the tests that we should have to prove that the sampling controllers in the JS, PHP, and, eventually, Swift client libraries are working as advertised. To paraphrase:

  1. A test to prove that if a pageview/session/device is in-sample at a 1% rate, then it should be in-sample at any greater rate, e.g. 5%, 10%, 25%, 50%, etc.
  2. A test to prove that the normalised pageview/session/device IDs generated by the client libraries are uniform

Event Timeline

phuedx renamed this task from [EPIC] Increase coverage of SamplingController tests to [EPIC] Increase coverage of sampling tests.Jan 15 2024, 11:58 AM
phuedx updated the task description. (Show Details)