-
Notifications
You must be signed in to change notification settings - Fork 36
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
Disable the fs
module integration by default in the tracer
#103
Conversation
Codecov Report
@@ Coverage Diff @@
## master #103 +/- ##
==========================================
- Coverage 90.22% 90.01% -0.22%
==========================================
Files 26 26
Lines 839 841 +2
Branches 142 143 +1
==========================================
Hits 757 757
- Misses 54 56 +2
Partials 28 28
Continue to review full report at Codecov.
|
README.md
Outdated
@@ -104,6 +104,10 @@ Inject Datadog trace id into logs for correlation. Defaults to `true`. | |||
|
|||
Set to `true` to merge the X-Ray trace and the Datadog trace, when using both the X-Ray and Datadog tracing. Defaults to `false`. | |||
|
|||
### DD_TRACE_DISABLED_PLUGINS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is not directly supported by datadog-lambda
, Should we simply add a paragraph about the environment variables that are honored by dd-trace
and a link to that list? https://docs.datadoghq.com/tracing/setup/nodejs/#configuration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README.md
Outdated
@@ -26,6 +26,8 @@ For additional details on trace collection, take a look at [collecting traces fr | |||
|
|||
For additional details on trace and log connection, check out the [official documentation for Datadog trace client](https://datadoghq.dev/dd-trace-js/). | |||
|
|||
The `fs` module is disabled by default. If you want to enable it you have to set the environmental variable `DD_TRACE_DISABLED_PLUGINS` to `''` or to a comma separated list of the plugins you want to disable. See the full list of supported plugins [here](https://docs.datadoghq.com/tracing/compatibility_requirements/nodejs/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environmental variable -> environment variable
comma separated list -> comma-separated list
What does this PR do?
fs
module integration indd-trace
.http-errors
from integration tests as they really don't provide a lot of value and timeout sporadically because they have an external dependencyIn order to enable a user can set
DD_TRACE_DISABLED_PLUGINS
to''
otherwise it will be disabled by default.Since the user can already disable other integration in the tracer using
DD_TRACE_DISABLED_PLUGINS
we make sure we don't overwrite the env var and only append to it if it exists.Motivation
This confuses a lot of customers and the amount of data we log. This will decrease the number of support cases as well.
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply