graphql-resolvers-xray-tracing
v1.0.4
Published
A GraphQL middleware to enable X-Ray tracing subsegments for GraphQL resolvers
Downloads
5
Maintainers
Readme
GraphQL Middleware to add X-Ray tracing for resolvers
To enable X-Ray subsegment creation for GraphQL resolvers, add this package as a dependency of your project and use code like this:
const traceResolveres = require('graphql-resolvers-xray-tracing');
const schema = makeExecutableSchema( ... );
traceResolvers(schema);
After enabling X-Ray tracing, you should see new subsegments in your X-Ray traces like this: