Instead of EventLogging, implement node-txstatsd, a port of node-statsd.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Memeht | T85232 Performance instrumentation in parsoid | |||
Resolved | Memeht | T85398 Create Parsoid event logging schema | |||
Resolved | Memeht | T86816 Add event timers | |||
Resolved | Memeht | T86817 Add txstatsd wrapper to mediawiki.Util.js | |||
Resolved | Memeht | T86818 Update Parsoid's package.json file | |||
Resolved | Memeht | T86819 Document timer information |
Event Timeline
Comment Actions
Looking at the event logging docs, as far as I understand, you won't be able to use event logging within Parsoid itself since the server-side instrumentation is php-based whereas Parsoid is node.js and there is no client-side component for Parsoid itself. So, you should use a statsd client to instrument Parsoid.
Comment Actions
In restbase, we use our own https://github.com/wikimedia/node-txstatsd package like this: https://github.com/gwicke/restbase/blob/master/lib/rbUtil.js#L19
Call: https://github.com/gwicke/restbase/blob/master/lib/restbase.js#L83