-
Notifications
You must be signed in to change notification settings - Fork 377
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
DI progress logs #4283
base: master
Are you sure you want to change the base?
DI progress logs #4283
Conversation
👋 Hey @p-datadog, please fill "Change log entry" section in the pull request description. If changes need to be present in CHANGELOG.md you can state it this way **Change log entry**
Yes. A brief summary to be placed into the CHANGELOG.md (possible answers Yes/Yep/Yeah) Or you can opt out like that **Change log entry**
None. (possible answers No/Nope/None) Visited at: 2025-01-14 16:40:36 UTC |
Datadog ReportBranch report: ❌ 37 Failed (0 Known Flaky), 22043 Passed, 1476 Skipped, 5m 40.21s Total Time ❌ Failed Tests (37)
|
BenchmarksBenchmark execution time: 2025-01-13 20:45:30 Comparing candidate commit 73b4959 in PR branch Found 0 performance improvements and 2 performance regressions! Performance is the same for 29 metrics, 2 unstable metrics. scenario:line instrumentation - targeted
scenario:method instrumentation
|
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.
Current draft looks reasonable, left a small note
if %w'1 true debug'.include?(ENV['DD_TRACE_DEBUG']) | ||
# We seem to have Datadog.logger here already | ||
Datadog.logger.debug("di: activating code tracking") | ||
end |
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.
I'm not sure the DD_TRACE_DEBUG
check is needed -- the logger initialization is already supposed to be looking at this setting? https://github.com/DataDog/dd-trace-rb/blob/master/lib/datadog/core/configuration.rb#L279 and https://github.com/DataDog/dd-trace-rb/blob/master/lib/datadog/core/configuration/components.rb#L37 should take care of it.
What does this PR do?
Motivation:
Change log entry
Additional Notes:
How to test the change?