Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to enable/disable segment generation at runtime #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomkoufakis
Copy link

@tomkoufakis tomkoufakis commented Apr 7, 2021

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);
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant