Skip to content

Commit

Permalink
di cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jul 7, 2024
1 parent 1723529 commit 91fb59e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/datadog/di/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ def initialize(settings, agent_settings)
attr_reader :probe_notifier_worker
attr_reader :remote_processor

# Shuts down dynamic instrumentation.
#
# Removes all code hooks and stops background threads.
#
# Does not clear out the code tracker, because it's only populated
# by code when code is compiled and therefore, if the code tracker
# was replaced by a new instance, the new instance of it wouldn't have
# any of the already loaded code tracked.
def shutdown!(replacement = nil)
hook_manager.clear_hooks
probe_notifier_worker.stop
end
end
end
Expand Down

0 comments on commit 91fb59e

Please sign in to comment.