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.
Description
Details
Event Timeline
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
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
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
Change 757051 merged by jenkins-bot:
[mediawiki/core@master] rdbms: Pass commented SQL to the GeneralizedSql for logging
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
Change 757133 merged by jenkins-bot:
[mediawiki/core@wmf/1.38.0-wmf.19] rdbms: Pass commented SQL to the GeneralizedSql for logging
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)
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.