graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.9k stars 967 forks source link

Instrument queries for CloudSQL Query Insights #3424

Open lutter opened 2 years ago

lutter commented 2 years ago

For the hosted service, it would probably help if indexing was instrumented with tags for query insights We should think through the kinds of analyses this enables, and instrument queries accordingly.

I am thinking of adding the following as tags to queries:

We'll have to map those to the tags that CloudSQL supports, but that's just going to be a convention.

This instrumentation should be possible to turn on/off with an environment variable

lutter commented 1 year ago

Part of this (for GraphQL queries) is done in #4079