graphql-resolvers-xray-tracing

1.0.4 • Public • Published

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('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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    0
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i graphql-resolvers-xray-tracing

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

164 kB

Total Files

4

Last publish

Collaborators

  • mdlavin