Description
Remove the dispatch() method from the Javascript client library.
The dispatch() method was initially introduced during early iterations of the Metrics Platform that used the monoschema. Now that we've pivoted to using the data contract model, this and related methods should be removed in favor the the api submit methods.
This task is dependent on making sure no instruments are currently using monoschema to send events.
Acceptance Criteria
- No instruments are currently using monoschema/dispatch to send events: https://codesearch.wmcloud.org/search/?q=eventLog.dispatch&files=&excludeFiles=&repos=
- The dispatch() and supporting methods are removed from the Javascript client
- Update relevant tests
- dispatch method has been removed from initMetricsClient in EventLogging
- Documentation is updated accordingly
- JS client library has been deployed/updated
Notes
- The JavaScript client can be found here: https://gitlab.wikimedia.org/repos/data-engineering/metrics-platform/-/tree/main/js?ref_type=heads
- You'll need to update the JavaScript client once the dispatch() method has been removed. The instructions to do that are here: https://wikitech.wikimedia.org/wiki/Experimentation_Lab/Deploy_client_libraries#JavaScript