-
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
DEBUG-3182 DI railtie #4272
DEBUG-3182 DI railtie #4272
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 22181 Passed, 1477 Skipped, 4m 50.91s Total Time |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4272 +/- ##
==========================================
- Coverage 97.72% 97.71% -0.01%
==========================================
Files 1355 1356 +1
Lines 82433 82445 +12
Branches 4213 4216 +3
==========================================
+ Hits 80555 80564 +9
- Misses 1878 1881 +3 ☔ View full report in Codecov by Sentry. |
* master: (161 commits) Bump to version 2.9.0 (#4293) Increase type checking coverage (#4290) DEBUG-3329 rename datadog/di/init to datadog/di/preload (#4288) update supported versions workflow (#4289) DEBUG-3182 DI railtie (#4272) DEBUG-3328 report DI status in environment logger summary (#4285) Move out ostruct gem from test group for Ruby 3.5 DEBUG-3316 verify code tracking works in forked processes (#4284) Fix rebase issue in Rack::RequestMiddleware Improve code style in AppSec rack middlewares Improve variable naming in Rack::RequestBodyMiddleware Improve variable naming in Rack::RequestMiddleware Simplify Rack::RequestMiddleware Switch AppSec rack blocking to throw Extract to .gitlab/scripts Implement polling vaccine Update RBS signatures Add new RSpec negate matcher not_change Replace direct AppSec::Processor::Context calls Change AppSec::Context exposed interface ...
What does this PR do?
Adds a Railtie for dynamic instrumentation. The railtie delays loading of DI contrib code (currently, ActiveRecord serializer) until Rails components have been loaded.
Also adds an integration test verifying AR serialization works correctly.
Motivation:
Improving DI reliability
Change log entry
Yes: improve loading of dynamic instrumentation components
Additional Notes:
How to test the change?
An integration test is added in this PR