Skip to content

Commit

Permalink
Revert "DEBUG-2334 Add Debugger component (#3640)"
Browse files Browse the repository at this point in the history
This reverts commit 3d3cb43.
  • Loading branch information
marcotc committed May 23, 2024
1 parent 14da809 commit 554b6d9
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 228 deletions.
1 change: 0 additions & 1 deletion lib/datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
# Load other products (must follow tracing)
require_relative 'datadog/profiling'
require_relative 'datadog/appsec'
require_relative 'datadog/debugger'
require_relative 'datadog/kit'
3 changes: 0 additions & 3 deletions lib/datadog/core/configuration/components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
require_relative '../../tracing/component'
require_relative '../../profiling/component'
require_relative '../../appsec/component'
require_relative '../../debugger/component'

module Datadog
module Core
Expand Down Expand Up @@ -81,7 +80,6 @@ def build_telemetry(settings, agent_settings, logger)
:runtime_metrics,
:telemetry,
:tracer,
:debugger,
:appsec

def initialize(settings)
Expand All @@ -107,7 +105,6 @@ def initialize(settings)
@health_metrics = self.class.build_health_metrics(settings)
@telemetry = self.class.build_telemetry(settings, agent_settings, logger)
@appsec = Datadog::AppSec::Component.build_appsec_component(settings)
@debugger = Datadog::Debugger::Component.build(settings)

self.class.configure_tracing(settings)
end
Expand Down
19 changes: 0 additions & 19 deletions lib/datadog/debugger.rb

This file was deleted.

18 changes: 0 additions & 18 deletions lib/datadog/debugger/component.rb

This file was deleted.

11 changes: 0 additions & 11 deletions lib/datadog/debugger/configuration.rb

This file was deleted.

27 changes: 0 additions & 27 deletions lib/datadog/debugger/configuration/settings.rb

This file was deleted.

15 changes: 0 additions & 15 deletions lib/datadog/debugger/extensions.rb

This file was deleted.

8 changes: 0 additions & 8 deletions sig/datadog/core/configuration/settings.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ module Datadog
def templates: () -> _TemplatesBlock
end

interface _Debugger
def enabled: () -> bool

def enabled=: (bool) -> void
end

interface _TemplatesBlock
def html=: (::String) -> void

Expand Down Expand Up @@ -88,8 +82,6 @@ module Datadog

def appsec: (?untyped? options) -> Datadog::Core::Configuration::Settings::_AppSec

def debugger: (?untyped? options) -> Datadog::Core::Configuration::Settings::_Debugger

def remote: (?untyped? options) -> Datadog::Core::Configuration::Settings::_Remote
end
end
Expand Down
5 changes: 0 additions & 5 deletions sig/datadog/debugger.rbs

This file was deleted.

11 changes: 0 additions & 11 deletions sig/datadog/debugger/component.rbs

This file was deleted.

6 changes: 0 additions & 6 deletions sig/datadog/debugger/configuration.rbs

This file was deleted.

19 changes: 0 additions & 19 deletions sig/datadog/debugger/configuration/settings.rbs

This file was deleted.

7 changes: 0 additions & 7 deletions sig/datadog/debugger/extensions.rbs

This file was deleted.

4 changes: 0 additions & 4 deletions spec/datadog/core/configuration/components_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,6 @@
expect(components.tracer).to receive(:shutdown!)
expect(components.remote).to receive(:shutdown!) unless components.remote.nil?
expect(components.profiler).to receive(:shutdown!) unless components.profiler.nil?
expect(components.debugger).to receive(:shutdown!) unless components.debugger.nil?
expect(components.appsec).to receive(:shutdown!) unless components.appsec.nil?
expect(components.runtime_metrics).to receive(:stop)
.with(true, close_metrics: false)
Expand All @@ -1105,7 +1104,6 @@
let(:profiler) { Datadog::Profiling.supported? ? instance_double(Datadog::Profiling::Profiler) : nil }
let(:remote) { instance_double(Datadog::Core::Remote::Component) }
let(:appsec) { instance_double(Datadog::AppSec::Component) }
let(:debugger) { instance_double(Datadog::Debugger::Component) }
let(:runtime_metrics_worker) { instance_double(Datadog::Core::Workers::RuntimeMetrics, metrics: runtime_metrics) }
let(:runtime_metrics) { instance_double(Datadog::Core::Runtime::Metrics, statsd: statsd) }
let(:health_metrics) { instance_double(Datadog::Core::Diagnostics::Health::Metrics, statsd: statsd) }
Expand All @@ -1116,7 +1114,6 @@
allow(replacement).to receive(:tracer).and_return(tracer)
allow(replacement).to receive(:profiler).and_return(profiler)
allow(replacement).to receive(:appsec).and_return(appsec)
allow(replacement).to receive(:debugger).and_return(debugger)
allow(replacement).to receive(:remote).and_return(remote)
allow(replacement).to receive(:runtime_metrics).and_return(runtime_metrics_worker)
allow(replacement).to receive(:health_metrics).and_return(health_metrics)
Expand All @@ -1131,7 +1128,6 @@
expect(components.tracer).to receive(:shutdown!)
expect(components.profiler).to receive(:shutdown!) unless components.profiler.nil?
expect(components.appsec).to receive(:shutdown!) unless components.appsec.nil?
expect(components.debugger).to receive(:shutdown!) unless components.debugger.nil?
expect(components.runtime_metrics).to receive(:stop)
.with(true, close_metrics: false)
expect(components.runtime_metrics.metrics.statsd).to receive(:close)
Expand Down
29 changes: 0 additions & 29 deletions spec/datadog/debugger/component_spec.rb

This file was deleted.

45 changes: 0 additions & 45 deletions spec/datadog/debugger/configuration/settings_spec.rb

This file was deleted.

0 comments on commit 554b6d9

Please sign in to comment.