Tracing
Micro-service Architecture has now become the obvious choice for application developers, but how can you debug and monitor a set of interdependent distributed services? Here comes OpenTelemetry to help us.
GraphQL Rocket Generator, includes an OpenTelemetry integration using Jaeger, helping you to monitor all the components of your GraphQL server ( SQL, Knex statements, GraphQL request life-cycle both Http and WebSocket and of course traces requests and events handled in your messaging handlers.
This feature includes tracing setup code found in src/startup/tracing
, and tracing middleware you can find in :
src/middleware/tracing
,src/messaging/middleware/tracing
,src/pubsub/middleware/tracingPublish
src/subscriptions/middleware/tracing
In addition, to activate this option, you will need to make a few configuration in server's .env
file:
Testing tracing locally
Prerequisites:
Make sure your services are configured to use your collector on port
4317
, or the one specified in Jaeger All-in-one
Access Jaeger Frontend, at e.g.:
http://localhost:16686/
Last updated