Skip to content

A GraphQL middleware to enable X-Ray tracing subsegments for GraphQL resolvers

License

Notifications You must be signed in to change notification settings

janicduplessis/graphql-resolvers-xray-tracing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Middleware to add X-Ray tracing for resolvers

npm Greenkeeper badge Build Status Coverage Status

To enable X-Ray subsegment creation for GraphQL resolvers, add this package as a dependency of your project and use code like this:

const traceResolvers = require('@lifeomic/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:

Image of X-Ray trace

About

A GraphQL middleware to enable X-Ray tracing subsegments for GraphQL resolvers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%