Page MenuHomePhabricator

Reading Lists Instrumentation - Contextual Attributes - Create Stream
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

With reference to the Instrumentation Spec and Parent Ticket, this task is for creating a stream, product_metrics.web_base_reading_list for the ReadingList Experiment. The stream must be configured to capture all of the contextual attributes defined below and within the instrumentation spec. The default schema provides us with all needed contextual attributes, so we can base the new stream off of analytics/product_metrics/web/base.

Because of the inclusion of page_id/page_title + performer_name, this Experiment is at Medium Security Risk.
https://wikitech.wikimedia.org/wiki/Experimentation_Lab/Contextual_attributes#Privacy_considerations

Requirements

  • Common contextual attributes are present for all events - stream configuration should capture these
- agent_client_platform
- agent_client_platform_family
- page_content_language
- page_namespace_id
- mediawiki_skin
- mediawiki.database
- performer.is_logged_in
- performer.is_temp
- performer.is_bot
- performer.edit_count_bucket
- performer.session_id
- dt
- meta.dt

Event Timeline

aude triaged this task as High priority.Sep 22 2025, 7:47 PM
aude moved this task from Incoming to Needs refinement on the Reader Experience Team board.
LMora-WMF set the point value for this task to 3.Sep 23 2025, 2:58 PM

The default stream for an experiment uses the contextual attributes as shown here under provide_values:

So we will update ticket to make a custom stream as the above does not include:

- page_content_language
- page_namespace_id
- performer.is_bot
- performer.edit_count_bucket
- performer.session_id
- dt
- meta.dt

Change #1192982 had a related patch set uploaded (by LorenMora; author: LorenMora):

[mediawiki/extensions/WikimediaEvents@master] Set Strem on ReadingList Experiment

https://gerrit.wikimedia.org/r/1192982

Change #1193438 had a related patch set uploaded (by LorenMora; author: LorenMora):

[mediawiki/extensions/MetricsPlatform@master] Add ReadingList stream to XLAB_STREAMS

https://gerrit.wikimedia.org/r/1193438

Change #1193445 had a related patch set uploaded (by LorenMora; author: LorenMora):

[operations/mediawiki-config@master] Add ReadingList Stream to EventStreamConfig

https://gerrit.wikimedia.org/r/1193445

LMora-WMF renamed this task from Reading Lists Instrumentation - Contextual Attributes to Reading Lists Instrumentation - Contextual Attributes - Create Stream.Oct 3 2025, 3:55 PM
LMora-WMF updated the task description. (Show Details)
SToyofuku-WMF subscribed.

Unassigning you as this needs review (lmk if we have a reviewer already and I can assign to them!)

Change #1193438 merged by jenkins-bot:

[mediawiki/extensions/MetricsPlatform@master] Add ReadingList stream to XLAB_STREAMS

https://gerrit.wikimedia.org/r/1193438

Change #1192982 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Set Stream on ReadingList Experiment

https://gerrit.wikimedia.org/r/1192982

Change #1193445 had a related patch set uploaded (by LorenMora; author: LorenMora):

[operations/mediawiki-config@master] Add ReadingList Stream to EventStreamConfig

https://gerrit.wikimedia.org/r/1193445