Large parts of EditAttemptStep logging code are duplicated in VisualEditor, DiscussionTools, MobileFrontend, and WikiEditor. As part of the IP masking work we would need to update this code in each of the extensions. This might be a good opportunity to centralize it.
I like how the Readers-Web team's logging for DesktopWebUIActionsTracking works, we should do ours similarly.