-
Notifications
You must be signed in to change notification settings - Fork 381
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
How do I totally turn off tracing in local development? Why is datadog still trying to make network calls? #4149
Comments
I noticed in this file
I also see a setting:
However, despite setting this, I'm still seeing the startup logs in development 🤔 |
Hey folks! As usual, thanks for reaching out, and sorry for the annoyance. TL;DR: Setting the environment variables I answer in more detail below ;) Hopefully this helps, and LMK if it works for you. The logs you shared aren't all coming from the same place so let me break down my answer into a few parts:
From what you shared, it looks like you may want to disable tracing instead of setting
(also available via The (confusingly named)
which has not been true for a long time. I'll raise this with the team to correct the docs.
The We've reduced the verbosity of logs by default in #3785 (I chased that one!), since yeah it was kinda crazy in some cases. Unfortunately, since it's not a security or a bugfix, it's probably not going to get backported to the 1.x series :(
This is a bit of the sharper edge with how dd-trace-rb works right now. TL;DR As a workaround, I recommend setting it via environment variable, e.g. |
Thank you so much for your help @ivoanjo . I've followed these instructions and an initial test suggests this seemed to eliminate the logs! I also appreciate you following up on getting the documentation to match the current behavior! I've started the upgrade to 2.0... I didn't even realize we were able to upgrade today. I see there's an upgrade guide, but do you have any reading on what the upgrade gets us behaviorally? I'll check out the CHANGELOG but just wondering if there's a more holistic pitch somewhere on 2.0 |
Compared to 1.x, the 2.x series has a lot of improvements to the profiler and appsec features, and a bunch of bugfixes all around (since only high-priority stuff is getting backported to 1.x). So if you're using appsec and profiling you should get some nice shiny features; otherwise you're mostly getting a bit more bugfixes and polish ;) The upgrade guide, since we tried to be extensive, may look a bit more scary than it actually is. The 1.x to 2.x jump was mostly so we could drop support for old Rubies + move a few constants around and clean up some old methods. Those changes are backwards-incompatible, hence the bump to the major version. Feel free to reach out via here and/or support if you do run into issues/have any questions :) |
Amazing! If it's okay I'll close this for now then and will ping ya if anything comes up. Thanks again :) |
**What does this PR do?** This PR updates our documentation to clarify what test mode does: 1. I've tweaked the wording to make it clear that this feature is used for testing distributed tracing behavior 2. I've explicitly mentioned that traces will still be sent; the previous version of the docs erroneously claimed a no-op transport would be applied, which is not true 3. I've left hints for folks that search for "test" while trying to disable dd-trace-rb in their test suites, that they should look at `tracing.enabled` instead 4. I've removed the bigger code examples for this feature, as it's a very niche thing that almost nobody will want to use, and having the code examples invites copy-paste of something that is probably not what the customer wants **Motivation:** The fact this doc is confusing came up in #4149 so it seemed relevant to fix our docs to avoid more confusion in the future. **Additional Notes:** N/A **How to test the change?** Docs-only change :)
**What does this PR do?** This PR updates our documentation to clarify what test mode does: 1. I've tweaked the wording to make it clear that this feature is used for testing distributed tracing behavior 2. I've explicitly mentioned that traces will still be sent; the previous version of the docs erroneously claimed a no-op transport would be applied, which is not true 3. I've left hints for folks that search for "test" while trying to disable dd-trace-rb in their test suites, that they should look at `tracing.enabled` instead 4. I've removed the bigger code examples for this feature, as it's a very niche thing that almost nobody will want to use, and having the code examples invites copy-paste of something that is probably not what the customer wants **Motivation:** The fact this doc is confusing came up in #4149 so it seemed relevant to fix our docs to avoid more confusion in the future. **Additional Notes:** N/A **How to test the change?** Docs-only change :)
When I run my Ruby tests, I am getting this:
However, I have set this configuration:
Thank you for your help!
The text was updated successfully, but these errors were encountered: