Skip to content

Instantly share code, notes, and snippets.

@mdlavin
Last active October 2, 2019 11:32
Show Gist options
  • Save mdlavin/77ccc6930306629c23cedc0638f12d54 to your computer and use it in GitHub Desktop.
Save mdlavin/77ccc6930306629c23cedc0638f12d54 to your computer and use it in GitHub Desktop.
Enabling graphql-resolvers-xray-tracing integration
const traceResolvers = require('@lifeomic/graphql-resolvers-xray-tracing');
const schema = makeExecutableSchema( ... );
traceResolvers(schema);
@mdlavin
Copy link
Author

mdlavin commented Oct 2, 2019

Hi, great snipped! Would like just to highlight that there is a typo in line 1.

-const traceResolveres = require('@lifeomic/graphql-resolvers-xray-tracing');
+const traceResolvers = require('@lifeomic/graphql-resolvers-xray-tracing');

Great catch! I'll fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment