-
Notifications
You must be signed in to change notification settings - Fork 376
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
DEBUG-3251 dependency inject logger into DI component #4262
Conversation
72affca
to
1ab4ce8
Compare
1ab4ce8
to
0c085e6
Compare
Datadog ReportBranch report: ✅ 0 Failed, 22114 Passed, 1476 Skipped, 5m 33.05s Total Time |
BenchmarksBenchmark execution time: 2025-01-08 05:33:22 Comparing candidate commit 6fb789e in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 30 metrics, 2 unstable metrics. scenario:profiler - Allocations ()
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4262 +/- ##
==========================================
- Coverage 97.73% 97.73% -0.01%
==========================================
Files 1352 1352
Lines 82409 82419 +10
Branches 4224 4224
==========================================
+ Hits 80545 80551 +6
- Misses 1864 1868 +4 ☔ View full report in Codecov by Sentry. |
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.
👍 LGTM
* master: DEBUG-3210 DI: change logging to be appropriate for customer inspection (DataDog#4266) Report timing information if try_wait_until times out (DataDog#4265) Move simplecov patch to an overlay in our tree instead of using a forked simplecov repo (DataDog#4263) DEBUG-3251 dependency inject logger into DI component (DataDog#4262) DEBUG-3182 move Rails utils to core (DataDog#4261) add supported versions workflow (DataDog#4210) DEBUG-3305 remove dependency on benchmark (DataDog#4259) Fix case & grammar in issue template (DataDog#4244) [🤖] Update Latest Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/12614773826
What does this PR do?
Alters DI component initialization to pass the logger into DI as a parameter rather than DI reading it out of Datadog module.
Motivation:
Logging should be passed into DI in one way.
Additionally, #4230 makes changes to how the logging is handled within DI, this PR makes the test suite log to mocks in several places and these places would need to be adjusted in addition to the other code in #4230.
Change log entry
None
Additional Notes:
How to test the change?