Skip to content

Commit 8ed2a67

Browse files
committed
current_component does not always exist?
1 parent 2bf7740 commit 8ed2a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datadog/tracing/contrib/rack/middlewares.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def call(env)
3939

4040
boot = Datadog::Core::Remote::Tie.boot
4141

42-
if defined?(Datadog::DI)
42+
if defined?(Datadog::DI.current_component)
4343
Datadog::DI.current_component&.probe_notifier_worker&.start
4444
end
4545

0 commit comments

Comments
 (0)