GraphQL Observability with Hasura
This article discusses how to debug and analyze metrics from a Hasura instance for better understanding of operations. It covers two distinct areas - Network Boundary and Application Boundary (Business Logic). The network boundary profiling can be done using browser devtools, while the application boundary profiling requires OpenTracing implementation. For gaining insight about what's happening in the database layer, Hasura provides several tools such as ANALYZE feature to display compiled SQL query for an operation, running EXPLAIN ANALYZE on the resulting query, and using visualizers like explain.dalibo.com. The Cloud "Metrics" dashboard's Operation modal also provides timing spans for PG operations. Additionally, Query Tags can be used with tools like pganalyze.com to deeply investigate operations or overall database health/activity.
Company
Hasura
Date published
July 29, 2021
Author(s)
Gavin Ray
Word count
2171
Hacker News points
None found.
Language
English