Skip to content
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 move Rails utils to core #4261

Merged
merged 3 commits into from
Jan 8, 2025
Merged

DEBUG-3182 move Rails utils to core #4261

merged 3 commits into from
Jan 8, 2025

Conversation

p-datadog
Copy link
Member

What does this PR do?

Moves Tracing::Contrib::Rails::Utils to Core

Motivation:
DI requires a similar loading logic for contribs as Tracing (currently we have one DI contrib which is ActiveRecord). I am working on having a DI railtie that would load the DI AR contrib late in application bootstrap, like tracing is doing with its contribs. To detect whether Railtie functionality is available, I need the Contrib::Rails::Utils methods.

Change log entry
None

Additional Notes:

How to test the change?

@p-datadog p-datadog requested review from a team as code owners January 6, 2025 19:20
@github-actions github-actions bot added core Involves Datadog core libraries integrations Involves tracing integrations tracing labels Jan 6, 2025
@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Jan 6, 2025

Datadog Report

Branch report: rails-utils-core
Commit report: 5179713
Test service: dd-trace-rb

✅ 0 Failed, 22125 Passed, 1475 Skipped, 5m 31.98s Total Time

@pr-commenter
Copy link

pr-commenter bot commented Jan 6, 2025

Benchmarks

Benchmark execution time: 2025-01-07 22:21:20

Comparing candidate commit 5179713 in PR branch rails-utils-core with baseline commit 9605f99 in branch master.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 30 metrics, 2 unstable metrics.

scenario:profiler - sample timeline=false

  • 🟥 throughput [-0.563op/s; -0.530op/s] or [-8.539%; -8.036%]

Copy link
Member

@ivoanjo ivoanjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

lib/datadog/core/contrib/rails/utils.rb Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.75%. Comparing base (9605f99) to head (5179713).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4261   +/-   ##
=======================================
  Coverage   97.74%   97.75%           
=======================================
  Files        1353     1352    -1     
  Lines       82392    82378   -14     
  Branches     4224     4224           
=======================================
- Hits        80536    80526   -10     
+ Misses       1856     1852    -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@p-datadog p-datadog merged commit 9440c03 into master Jan 8, 2025
337 checks passed
@p-datadog p-datadog deleted the rails-utils-core branch January 8, 2025 05:00
@github-actions github-actions bot added this to the 2.9.0 milestone Jan 8, 2025
p-datadog pushed a commit to p-datadog/dd-trace-rb that referenced this pull request Jan 9, 2025
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries integrations Involves tracing integrations tracing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants