Background
While working on T350497: Update the WikiLambda instrumentation to use core interaction events Abstract Wikipedia team suggested to add activity_session as a new contextual attribute to be able to manage user activity sessions (to distinguish it from the user_session one, we have to keep in mind that activity_session has an independent value for sessions opened even if they are open in the same browser instance).
We'd need to add it as a new attribute to the Metrics Platform JS client library (it's a web-based specific attribute when calling submitInteraction()).
AC
- performer.active_browsing_session_token contextual attribute has been added to the web base schema (review)
- performer.active_browsing_session_token attribute has been added to the Metrics Platform JS client library (+ the EventLogging work that has to be done in the ContextAttributeFactory) (review JS client library) (review EventLogging)
- All this has been tested locally (the new contextual attribute is added to an event)
Notes
- activity_sessionfield in datahub: https://datahub.wikimedia.org/glossaryTerm/urn:li:glossaryTerm:0f6b8770-8db9-4eb5-b205-4225daf5bb1b/Documentation?is_lineage_mode=false