From 66be4ebb8ab9ff7a0f96214e6101228eb8a5d126 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Wed, 25 Sep 2024 12:09:09 -0400 Subject: [PATCH] start docstring --- lib/datadog/di/code_tracker.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/datadog/di/code_tracker.rb b/lib/datadog/di/code_tracker.rb index 2831a55b6f..5d9264a003 100644 --- a/lib/datadog/di/code_tracker.rb +++ b/lib/datadog/di/code_tracker.rb @@ -22,6 +22,14 @@ def initialize @registry_lock = Mutex.new end + # Starts tracking loaded code. + # + # This method should generally be called early in application boot + # process, because any code loaded before code tracking is enabled + # will not be instrumentable via line probes. + # + # Normally tracking should remain active for the lifetime of the + # process and would not be ever stopped. def start # If this code tracker is already running, we can do nothing or # restart it (by disabling the trace point and recreating it).