Page MenuHomePhabricator

WikiLambda metrics: Track uses of the wikilambda_function_call API
Closed, ResolvedPublic

Description

Description

  • Instrument the existing (internal) function-call API to track the calls, and which functions are called.
  • Make sure the metrics events distinguishable from the public wikifunctions_run API (T360369).

Notes:

  • TBD: Can/should we track country, device type, and/or language of the caller?
  • Not necessary to record the input arguments of the function calls.

Completion checklist

Event Timeline

Jdforrester-WMF moved this task from To Triage to Backlog on the Abstract Wikipedia team board.
DMartin-WMF renamed this task from WikiLambda metrics: Track function calls at the API level to WikiLambda metrics: Track uses of the wikilambda_function_call API.Apr 8 2024, 4:48 AM
DMartin-WMF updated the task description. (Show Details)

Change #1017961 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] Add Metrics Platform tracking of wikilambda_function_call

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

Change #1017962 had a related patch set uploaded (by David Martin; author: David Martin):

[operations/mediawiki-config@master] Add a stream for tracking the API of WikiLambda

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

Change #1019138 had a related patch set uploaded (by David Martin; author: David Martin):

[schemas/event/secondary@master] Create schema for tracking WikiLambda APIs

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

Change #1019138 merged by jenkins-bot:

[schemas/event/secondary@master] Create schema for tracking WikiLambda run-function API endpoints

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

Change #1017961 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add Metrics Platform tracking of WikiLambda function-call endpoints

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

Change #1017962 merged by jenkins-bot:

[operations/mediawiki-config@master] Add a stream for tracking the API of WikiLambda

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

Mentioned in SAL (#wikimedia-operations) [2024-05-30T20:25:04Z] <cjming@deploy1002> Started scap: Backport for [[gerrit:1017962|Add a stream for tracking the API of WikiLambda (T356228 T360369)]]

Mentioned in SAL (#wikimedia-operations) [2024-05-30T20:29:51Z] <cjming@deploy1002> cjming and dmartin: Backport for [[gerrit:1017962|Add a stream for tracking the API of WikiLambda (T356228 T360369)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-05-30T20:53:12Z] <cjming@deploy1002> Finished scap: Backport for [[gerrit:1017962|Add a stream for tracking the API of WikiLambda (T356228 T360369)]] (duration: 28m 08s)

Change #1050086 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] WikiLambda metrics: Function call APIs should record ZID, not complete Z8

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

Change #1050086 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] WikiLambda metrics: Function call APIs should record ZID, not complete Z8

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