Page MenuHomePhabricator

Query caller comments /* Class::method */ not available in slow queries logstash dashboard
Closed, ResolvedPublic

Description

The new slow queries dashboard, replacing a part of Tendril, currently doesn’t show the usual /* Class::method */ comments indicating the caller of a query. This makes the overview of top slow queries less useful: unless you recognize the query, you need to go to an event for this message and look at its exception.* fields (especially exception.trace) to figure out where the query is coming from.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Krinkle renamed this task from Query caller comments /* Class::method() */ not available in slow queries logstash dashboard to Query caller comments /* Class::method */ not available in slow queries logstash dashboard.Jan 6 2022, 2:59 PM
Krinkle updated the task description. (Show Details)
Krinkle moved this task from Untriaged to Rdbms library on the MediaWiki-libs-Rdbms board.
Krinkle added a project: DBA.
Krinkle added subscribers: Ladsgroup, Krinkle.
Krinkle triaged this task as Medium priority.Jan 6 2022, 3:00 PM

Yeah, It's not that important given that it's still accessible via stacktrace but I will get to it to make it appear in fullQuery field.

Change 757051 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] rdbms: Pass commented SQL to the GeneralizedSql for logging

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

Change 757052 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@master] rdbms: Pass commented SQL to GeneralizedSql alongside the raw one

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

One of those two patches should be merged, I don't care which tbh.

Change 757052 abandoned by Ladsgroup:

[mediawiki/core@master] rdbms: Pass commented SQL to GeneralizedSql alongside the raw one

Reason:

We are going to the alternative approach

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

Change 757051 merged by jenkins-bot:

[mediawiki/core@master] rdbms: Pass commented SQL to the GeneralizedSql for logging

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

Change 757133 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/core@wmf/1.38.0-wmf.19] rdbms: Pass commented SQL to the GeneralizedSql for logging

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

Change 757133 merged by jenkins-bot:

[mediawiki/core@wmf/1.38.0-wmf.19] rdbms: Pass commented SQL to the GeneralizedSql for logging

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

Mentioned in SAL (#wikimedia-operations) [2022-01-26T11:41:29Z] <ladsgroup@deploy1002> Synchronized php-1.38.0-wmf.19/includes/libs/rdbms/database/Database.php: Backport: [[gerrit:757133|rdbms: Pass commented SQL to the GeneralizedSql for logging (T298687)]] (duration: 00m 54s)

Ladsgroup moved this task from Incoming to Done on the User-Ladsgroup board.

This is not deployed to all wikis yet but it will be there by end of the week (hopefully)

Change 761041 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[mediawiki/services/function-schemata@master] Add definitions for Trigger Metadata builtin function.

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