Page MenuHomePhabricator

Add Mediawiki Errors to Error Reporting tool
Closed, ResolvedPublic

Description

Currently errors from our mediawiki pods are not ingested by the google cloud error reporting tool[1].

We should set up the system so they are reported. This probably means tweaking the log output of mediawiki[2].

[1] - https://cloud.google.com/error-reporting
[2] - https://www.mediawiki.org/wiki/Manual:Structured_logging

Patches:

Event Timeline

Andrew-WMDE updated the task description. (Show Details)
Andrew-WMDE subscribed.
Fring removed Fring as the assignee of this task.Jan 31 2024, 5:28 PM
Fring subscribed.

We had a talk about this and we decided that we probably want to use a standard monolog (https://github.com/Seldaek/monolog) style output both here and in our platform api output since this would be nice from a consistency perspective.

This would mean we should be able to totally remove the custom SPI and logger. We probably want to check first that some of the logging in the wbstack custom code does happen in this case though.

We ought to then be able to use the MonologSpi::class and perhaps add a single custom processor to also add the "google" important content to the JSON output

We think this ticket should probably move forwards as it is but we should have a new ticket TBC to investigate removing this customspi and just use monolog out of the box

Tarrow claimed this task.