Page MenuHomePhabricator

Implement the instrumentation to track usage of MinT in the Translate extension
Open, In Progress, MediumPublic

Description

As part of the work to track the usage of MinT in the Translate extension (T350483), this ticket focuses on implementing the schema defined (T362750).

Event Timeline

Change #1062367 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/TranslationNotifications@master] NotificationMessageBuilder: add `action_source` query param

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

Change #1046661 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/Translate@master] MinT: Add event logging to Translate

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

Change #1062367 merged by jenkins-bot:

[mediawiki/extensions/TranslationNotifications@master] NotificationMessageBuilder: add `action_source` query param

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

Change #1046661 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] MVP: Add event logging to Special:Translate

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

T369687 has been resolved. Following this comment, we should now be able to proceed with implementing a number of other events that would eventually lead to a holistic picture when tracking usage of MinT in the Translate extension.

As a caveat, it was pointed out that a number of events and the related work items around them may not directly point at MinT instrumentation, though related. I think this is fine as long as it serves the end goal. There's a new configuration parameter, TranslateEnableEventLogging, that is disabled by default on wikis that have the Translate Extension installed. I expect another configuration parameter that is specific to MinT in upcoming patches.

@Wangombe

T369687 has been resolved. Following this comment, we should now be able to proceed with implementing a number of other events that would eventually lead to a holistic picture when tracking usage of MinT in the Translate extension.

Yes, I have added a couple of columns to the schema (E & F) with information about what needs to changed from action_context to the schema fragment fields.

As a caveat, it was pointed out that a number of events and the related work items around them may not directly point at MinT instrumentation, though related. I think this is fine as long as it serves the end goal.

Yes, I think at this point the schema is more for the Translate extension, rather than specifically MinT only, as some of other events will have to be tracked for us to get a better understanding of the user interactions.


A quick note (after I heard back from the Metrics Platform team), all events should have the translation object. If an event is not using any of the translation fields, it can be an empty object {}. This will ensure that those events pass EventGate validation.