We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1660a74 commit 235a584Copy full SHA for 235a584
lib/datadog/di/code_tracker.rb
@@ -83,7 +83,12 @@ def start
83
84
# Also, pending line probes should only be installed for
85
# non-eval'd code.
86
- DI.current_component&.probe_manager&.install_pending_line_probes(path)
+ if component = DI.current_component
87
+ component.logger.debug { "di: installing pending probes for #{path}" }
88
+ component.probe_manager&.install_pending_line_probes(path)
89
+ else
90
+ Datadog.logger.debug { "di: loaded #{path}, but no DI component present" }
91
+ end
92
end
93
# Since this method normally is called from customer applications,
94
# rescue any exceptions that might not be handled to not break said
0 commit comments