Skip to content

Commit

Permalink
DEBUG-3329 rename datadog/di/init to datadog/di/preload
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jan 14, 2025
1 parent 5361e8e commit c44ee57
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/di/base.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# This file is loaded by datadog/di/init.rb.
# This file is loaded by datadog/di/preload.rb.
# It contains just the global DI reference to the (normally one and only)
# code tracker for the current process.
# This file should not require the rest of DI, specifically none of the
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/di/init.rb → lib/datadog/di/preload.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Require 'datadog/di/init' early in the application boot process to
# Require 'datadog/di/preload' early in the application boot process to
# enable dynamic instrumentation for third-party libraries used by the
# application.

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
raise "Datadog code loaded too early"
end
require 'datadog/di/init'
require 'datadog/di/preload'
if Datadog.constants.sort != %i(DI VERSION)
raise "Too many datadog components loaded: \#{Datadog.constants}"
Expand Down
2 changes: 1 addition & 1 deletion spec/loading_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'datadog/appsec' => 'Datadog::AppSec',
'datadog/core' => 'Datadog::Core',
'datadog/di' => 'Datadog::DI',
'datadog/di/init' => 'Datadog::DI::CodeTracker',
'datadog/di/preload' => 'Datadog::DI::CodeTracker',
'datadog/kit' => 'Datadog::Kit',
'datadog/profiling' => 'Datadog::Profiling',
'datadog/tracing' => 'Datadog::Tracing',
Expand Down

0 comments on commit c44ee57

Please sign in to comment.