-
Notifications
You must be signed in to change notification settings - Fork 518
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
Allow disabling dtrace-provider #417
Conversation
This allows people using Node.js >=6 to avoid a bunch of deprecation warnings in the C/C++ land coming from dtrace-provider which uses deprecated APIs.
@Alaneor Sorry for the delay in responding. What deprecation warnings? Perhaps this is specific to a particular node v6 version or a particular platform? Here is me runnign this on Mac 10.11.4 with node 6.2.2:
|
After switching to 6.2.2 from 5.10.1, I began to see Dtrace-related errors like:
After performing an
In the end, I |
The deprecation warnings this patch was supposed to avoid are described in this issue. However, the root cause seems to have been fixed upstream (nan) so I do not think this is needed anymore. I keep this open in case you would be interested to merge it anyway as a means to disable the DTrace functionality completely, perhaps to let users get some small perf boost. Otherwise, feel free to close. Thanks! |
Closing due to no interest to merge this from the Bunyan team. The original reason for disabling DTrace has been fixed in #449, but disabling it might have improved performance a bit. |
This allows people using Node.js >=6 to avoid a bunch of deprecation warnings coming from the C/C++ land in dtrace-provider which uses deprecated APIs.
Usage: Just set
BUNYAN_NO_DTRACE
to a truthy value and you are all set.Recommended changelog entry:
BUNYAN_NO_DTRACE
environment variableThanks for review!