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-3329 rename datadog/di/init to datadog/di/preload #4288

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading