Page MenuHomePhabricator

🐑 Track GQL query execution success and error
Open, Needs TriagePublic

Description

For each request, track a "hit" on the gql endpoint with a status label containing

  • "success" - if the request was handled and there are no errors
  • "error" - if the response contains no data and there are errors
  • "partial_success" - if the response contains data and there were errors. Containing data can also mean returning just "data": { "item": null } if the requested item does not exist.

For every unique error type, we also increment a counter metric including the error code corresponding to the error type.

Related Objects

Event Timeline

Change #1233774 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] GQL: Track GraphQL service hits

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

Change #1235063 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] GQL: Combine user-facing errors into one

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

Change #1235319 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] GQL: Track error types

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

Change #1233774 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] GQL: Track GraphQL service hits

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

Change #1235063 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] GQL: Combine user-facing errors into one

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

Change #1235319 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] GQL: Track error types

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