Page MenuHomePhabricator

Make Metrics Platform Clients record sampling rate and unit in the event
Closed, ResolvedPublic5 Estimated Story Points

Description

Motivating examples:

TODO

  • Update the Metrics Event schema to include sampling unit and rate
  • Make the Metrics Platform Clients record the sampling unit and rate as part of the event that is submitted via ::dispatch()
    • Update the JS client library
    • Update the Java client library

Notes

The PHP client library doesn't need to be updated because it doesn't do sampling.

Event Timeline

phuedx renamed this task from Make Metrics Platform Clients record sampling rate and unit as part of the event to Make Metrics Platform Clients record sampling rate and unit in the event.Jun 15 2022, 12:24 PM
phuedx updated the task description. (Show Details)
  • Update the PHP Metrics Platform Client

The PHP client library can't sample by the available units and so wouldn't need to record sampling unit and rate as part of the event.

Change 952252 had a related patch set uploaded (by Phuedx; author: Phuedx):

[schemas/event/secondary@master] Add analytics/metrics_platform/{app,web}/base schemas

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

Change 951191 had a related patch set uploaded (by Phuedx; author: Clare Ming):

[schemas/event/secondary@master] Add product metrics fragments and schemas

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

Change 952252 abandoned by Phuedx:

[schemas/event/secondary@master] Add analytics/product_metrics/{app,web}/base schemas

Reason:

Superseded by the latest PS of I9dd03fc6bb4bca94a84c23d5b0d04f3bc0c20e6a

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

Change 951191 merged by jenkins-bot:

[schemas/event/secondary@master] Add product metrics fragments and schemas

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