JSPM

  • Created
  • Published
  • Downloads 1381
  • Score
    100M100P100Q139439F
  • License MIT

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

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

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 traceResolveres = 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