Package Exports
- @lifeomic/graphql-resolvers-xray-tracing
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lifeomic/graphql-resolvers-xray-tracing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 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: