Page MenuHomePhabricator

[SessionLength] Add ability to adjust sampling rate per wiki
Closed, DeclinedPublic

Description

While our first implementation of SessionLength uses the same sampling rate across wikis, we ultimately want to be able to vary sampling rates across wikis (and configure this over time, as traffic and computing power change).

Acceptance Criteria:

  • Sampling rate can be configured at an individual wiki level
  • Metadata about the sampling rate is captured to inform analysis/reports (T276630)

Event Timeline

@jlinehan @Mholloway we discussed the idea of adding the ability to adjust sampling rate for this sprint, but @mforns suggested that design considerations may take some time to work through. This is a capability we'd like to add after v1, though I'm not sure if it should be tied directly to SessionLength or if there will be a more generic way to adjust sampling rate for other types of events.

Last Friday I learned that we can already configure sampling rate per wiki!
The changes needed to make this useful in the session length project would be:

  • storing the session length field in the session_tick schema (or in all schemas)
  • using that rate in the session length metric computations
LGoto triaged this task as Medium priority.Mar 24 2021, 6:12 PM
LGoto moved this task from To Do to Backlog on the Better Use Of Data board.
JVanderhoop-WMF subscribed.

The goals here will be achieved by offering SessionLength as one of the standard metrics to use in experimentation T406261: [EPIC] SDS 2.4.3 Create a suite of standard metrics to use in experiments