graphql-resolvers-xray-tracing icon indicating copy to clipboard operation
graphql-resolvers-xray-tracing copied to clipboard

Added ability to enable/disable segment generation at runtime

Open tomkoufakis opened this issue 3 years ago • 0 comments

Changes:

  • Added support for passing in an options object containing an enabled field. This will allow enabling/disabling metrics gathering programatically. This is implemented as an options object in order to allow future expansion of other configurations.
  • Added ability to view the html coverage report via npn run coverage_report --> coverage/lcov-report/index.html

Usage:

In your schema.js/ts:

` import traceResolvers from '../../src/traceResolvers';

// module scope or other storage mechanism of your choosing export const tracingOptions = { enabled: true }; ...

traceResolvers(schema, tracingOptions); `

tomkoufakis avatar Apr 07 '21 21:04 tomkoufakis