πŸ•ΈοΈ API Patterns and Practices: GraphQL
Chapters Examples Bibliography GitHub β†—
Home / Observability & the Gateway
Part 9 2 chapters

Observability & the Gateway

Trace and measure resolvers, and compose several subgraphs behind one federated gateway.

Chapter 19

Observability

Telemetry for an API with one endpoint: OpenTelemetry on both stacks, a trace joined to the caller's with a span per resolver and per source call, errors by code and deprecated-field usage as metrics, span metrics from Tempo, log records found by trace id, and what to leave out of all of it.

16 min readRead β†’
Chapter 20

Federation & schema composition

One graph owned by several teams: the tracking view split into a cargo subgraph and a handling subgraph on both stacks, entities and references, batched entity resolution, composition as a failing build step, a query plan counted from the subgraphs' logs, and two cross-wired Hive gateways that serve the canonical contract.

16 min readRead β†’
← Previous part Security Next part β†’ Real-time & Client Integration

API Patterns and Practices: GraphQL

Designing GraphQL APIs well, with runnable examples in Quarkus SmallRye GraphQL and Python Strawberry against one canonical SDL contract.

Site

  • Outline
  • Bibliography

Reference

  • GraphQL β†—
  • GraphQL specification β†—
  • SmallRye GraphQL β†—
  • Strawberry β†—
  • View on GitHub β†—
  • Issues β†—
Open source Β· MIT Last built 2026-10-17