As part of T329506, do an initial update of the guide to creating an instrument with Metrics Platform so that it is up to date and follows a step-by-step process.
To do:
- Review https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Create_An_Instrument and https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Create_First_Metrics_Platform_Instrument, and determine whether they can be consolidated
- Conclusion: These two pages contain a lot of duplicate content and appear to serve the same purpose. I plan to check with stakeholders and merge the two pages into one.
- Interim measures to address critical friction points
- Remove 7,000+ bytes of duplicated content between the two pages using section transclusion to stop content drift in the interim (edits: 1, 2)
- Transclude the newly created section on planning an experiment from https://wikitech.wikimedia.org/wiki/Event_Platform/Instrumentation_How_To#Writing_MediaWiki_instrumentation_code into both Metrics Platform pages
- Merge the two pages
- All content from Metrics Platform/How to/Create An Instrument has been moved elsewhere, and Metrics Platform/How to/Create An Instrument has been redirected to Metrics Platform/How to/Create First Metrics Platform Instrument
- Restructure the page to follow a step-by-step process
- Complete rough restructuring (edit)
- Review with subject matter experts and iterate
- Identify supporting documents
- Identify next steps
Documentation journey as of August 15
Supporting documents and next steps
- Measurement plan template
- To do: Create a template based on existing good examples
- Measurement plan examples
- Instrumentation spec template
- To do: Update the template to match the terms and flow from the guide
- Instrumentation spec examples
- MP base schemas
- To do: Look into a visualization tool for schema.wikimedia.org
- Lists of contextual attributes (one for PHP and one for JS)
- Create a Custom Schema
- To do: Update example, add details about choosing from an existing custom schema, add validate step
- Setup Mediawiki for Metrics Platform
- Implementations
- To do: De-duplicate content with the main guide
- Getting Started
- To do: Combine with Setup guide
- WikimediaEvents OWNERS.md
- Creating a Stream Configuration
- To do: De-duplicate with Setup Mediawiki for Metrics Platform and other places with config examples
- Event Platform/Instrumentation How To
- Supporting documents outside the scope of the Metrics Platform collection:
- Backport windows
- Data collection guidelines
Main guide next steps
- Following the launch of the standardized clickrate instrument, change the instrument example to a scroll event.
- Create a public, interim process for documenting instruments
July 17 content review
Metrics Platform/How to/Create An Instrument
- What is Metrics Platform
- Set up development environment
- Implement instrument code on web
- Transcludes https://wikitech.wikimedia.org/wiki/Template:Metrics_Platform/Docs/Content/Writing_mediawiki_instrumentation_code_using_eventlogging_extension
- Language-specific sections
- Implement instrument code on mobile
- Language-specific sections
- Deployment
- Viewing and querying events
- Overriding event stream config settings
- Decommissioning
Metrics Platform/How to/Create First Metrics Platform Instrument
Orgiginally based on Getting started with Metrics Platform (Google Doc)
- Link to https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Setup_Mediawiki_for_Metrics_Platform
- Document the instrument
- Plan to decommission the instrument
- Link to core schemas
- Link to https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Create_a_Custom_Schema
- Implement instrument code
- Transcludes https://wikitech.wikimedia.org/wiki/Template:Metrics_Platform/Docs/Content/Writing_mediawiki_instrumentation_code_using_eventlogging_extension
- Language-specific sections with a requirements section that links to https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Getting_Started#Javascript and then duplicates content from https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Create_An_Instrument
- Configure the stream
- Validate the events (large section of unique content)
- Deploy the stream
- Duplicates content from https://wikitech.wikimedia.org/wiki/Metrics_Platform/How_to/Create_An_Instrument
- Review your data
