Description
For each run-function request (explicit user request using the function evaluation widget), record the argument types and the return type of the selected function. The instrument already exists to record these requests (per T340786); it is likely possible to add this type info to the existing instrument.
Update: for any given run-function request, we can look up the function's types using the new DB table which will result from T363439. It won't be necessary to add that info to each run-function event.
This is motivated in part by our need to answer questions like the following: How frequently are new types used by the community and what are the most common use cases?
Note: This will generate a lot of repeated info (about the argument types and return type associated with each given function), which could be obtained in other ways. (For example, a new DB table that records the argument and return types for each function.) Should we consider these other ways, so as to keep down the metrics pipeline traffic?
Desired behavior/Acceptance criteria
- The type info is recorded accurately and reliably, and shows up in the Wikifunctions_ui table in the data lake.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist