diff --git a/lib/datadog/tracing/buffer.rb b/lib/datadog/tracing/buffer.rb index d6da66aa237..847f8588daf 100644 --- a/lib/datadog/tracing/buffer.rb +++ b/lib/datadog/tracing/buffer.rb @@ -1,4 +1,3 @@ -require_relative '../core' require_relative '../core/environment/ext' require_relative '../core/buffer/thread_safe' require_relative '../core/buffer/cruby' diff --git a/lib/datadog/tracing/contrib/patcher.rb b/lib/datadog/tracing/contrib/patcher.rb index fee8ed06b73..82d7618e5d3 100644 --- a/lib/datadog/tracing/contrib/patcher.rb +++ b/lib/datadog/tracing/contrib/patcher.rb @@ -1,4 +1,3 @@ -require_relative '../../core' require_relative '../../core/utils/only_once' module Datadog diff --git a/lib/datadog/tracing/contrib/roda/patcher.rb b/lib/datadog/tracing/contrib/roda/patcher.rb index 5e301df8cad..fbb8a174aa6 100644 --- a/lib/datadog/tracing/contrib/roda/patcher.rb +++ b/lib/datadog/tracing/contrib/roda/patcher.rb @@ -2,7 +2,7 @@ # typed: ignore -require_relative 'patcher' +require_relative '../patcher' require_relative 'ext' require_relative 'instrumentation' diff --git a/lib/datadog/tracing/contrib/status_code_matcher.rb b/lib/datadog/tracing/contrib/status_code_matcher.rb index 9cafc646a47..a568ef6be65 100644 --- a/lib/datadog/tracing/contrib/status_code_matcher.rb +++ b/lib/datadog/tracing/contrib/status_code_matcher.rb @@ -1,6 +1,5 @@ require 'set' -require_relative '../../core' require_relative '../metadata/ext' module Datadog diff --git a/lib/datadog/tracing/correlation.rb b/lib/datadog/tracing/correlation.rb index 67d5a12ca84..653dd1f8c7d 100644 --- a/lib/datadog/tracing/correlation.rb +++ b/lib/datadog/tracing/correlation.rb @@ -1,4 +1,3 @@ -require_relative '../core' require_relative 'utils' require_relative 'metadata/ext' diff --git a/lib/datadog/tracing/event.rb b/lib/datadog/tracing/event.rb index a1ce262af48..a0f3a3f74dd 100644 --- a/lib/datadog/tracing/event.rb +++ b/lib/datadog/tracing/event.rb @@ -1,5 +1,3 @@ -require_relative '../core' - module Datadog module Tracing # Event behavior and DSL diff --git a/lib/datadog/tracing/pipeline.rb b/lib/datadog/tracing/pipeline.rb index 7f35b1cf254..ed650a911da 100644 --- a/lib/datadog/tracing/pipeline.rb +++ b/lib/datadog/tracing/pipeline.rb @@ -1,5 +1,3 @@ -require_relative '../core' - require_relative 'pipeline/span_filter' require_relative 'pipeline/span_processor' diff --git a/lib/datadog/tracing/runtime/metrics.rb b/lib/datadog/tracing/runtime/metrics.rb index 50761809640..2b8fcf09ec4 100644 --- a/lib/datadog/tracing/runtime/metrics.rb +++ b/lib/datadog/tracing/runtime/metrics.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require_relative '../../core' - module Datadog module Tracing module Runtime diff --git a/lib/datadog/tracing/sampling/rate_by_service_sampler.rb b/lib/datadog/tracing/sampling/rate_by_service_sampler.rb index c60a6c852ab..999115f1860 100644 --- a/lib/datadog/tracing/sampling/rate_by_service_sampler.rb +++ b/lib/datadog/tracing/sampling/rate_by_service_sampler.rb @@ -1,4 +1,3 @@ -require_relative '../../core' require_relative 'rate_by_key_sampler' module Datadog diff --git a/lib/datadog/tracing/sampling/rate_sampler.rb b/lib/datadog/tracing/sampling/rate_sampler.rb index 9b972d21bb3..b49e4728fcb 100644 --- a/lib/datadog/tracing/sampling/rate_sampler.rb +++ b/lib/datadog/tracing/sampling/rate_sampler.rb @@ -1,5 +1,3 @@ -require_relative '../../core' - require_relative 'sampler' require_relative '../utils' diff --git a/lib/datadog/tracing/sampling/rule.rb b/lib/datadog/tracing/sampling/rule.rb index 3b3db8e2a08..fd59e40986b 100644 --- a/lib/datadog/tracing/sampling/rule.rb +++ b/lib/datadog/tracing/sampling/rule.rb @@ -1,5 +1,3 @@ -require_relative '../../core' - require_relative 'matcher' require_relative 'rate_sampler' diff --git a/lib/datadog/tracing/sampling/rule_sampler.rb b/lib/datadog/tracing/sampling/rule_sampler.rb index edc118822fe..94ed709501d 100644 --- a/lib/datadog/tracing/sampling/rule_sampler.rb +++ b/lib/datadog/tracing/sampling/rule_sampler.rb @@ -1,5 +1,3 @@ -require_relative '../../core' - require_relative 'ext' require_relative 'rate_limiter' require_relative 'rule' diff --git a/lib/datadog/tracing/span_operation.rb b/lib/datadog/tracing/span_operation.rb index 7056a8ae8f3..ce371337367 100644 --- a/lib/datadog/tracing/span_operation.rb +++ b/lib/datadog/tracing/span_operation.rb @@ -1,6 +1,5 @@ require 'time' -require_relative '../core' require_relative '../core/environment/identity' require_relative '../core/utils' require_relative '../core/utils/time' diff --git a/lib/datadog/tracing/sync_writer.rb b/lib/datadog/tracing/sync_writer.rb index 6513b56534b..9fe48a69c0d 100644 --- a/lib/datadog/tracing/sync_writer.rb +++ b/lib/datadog/tracing/sync_writer.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require_relative '../core' - require_relative 'pipeline' require_relative 'runtime/metrics' require_relative 'writer' diff --git a/lib/datadog/tracing/trace_operation.rb b/lib/datadog/tracing/trace_operation.rb index 857af99d3ec..2091efe92b3 100644 --- a/lib/datadog/tracing/trace_operation.rb +++ b/lib/datadog/tracing/trace_operation.rb @@ -1,4 +1,3 @@ -require_relative '../core' require_relative '../core/environment/identity' require_relative '../core/utils' diff --git a/lib/datadog/tracing/tracer.rb b/lib/datadog/tracing/tracer.rb index f311363fe3f..c7dbcae6755 100644 --- a/lib/datadog/tracing/tracer.rb +++ b/lib/datadog/tracing/tracer.rb @@ -1,4 +1,3 @@ -require_relative '../core' require_relative '../core/environment/ext' require_relative '../core/environment/socket' diff --git a/lib/datadog/tracing/workers.rb b/lib/datadog/tracing/workers.rb index 85d01741e0c..b72ef42d7e0 100644 --- a/lib/datadog/tracing/workers.rb +++ b/lib/datadog/tracing/workers.rb @@ -1,5 +1,3 @@ -require_relative '../core' - require_relative 'buffer' require_relative 'pipeline' diff --git a/lib/datadog/tracing/workers/trace_writer.rb b/lib/datadog/tracing/workers/trace_writer.rb index 473d35e5b3e..fdd6c11d926 100644 --- a/lib/datadog/tracing/workers/trace_writer.rb +++ b/lib/datadog/tracing/workers/trace_writer.rb @@ -1,4 +1,3 @@ -require_relative '../../core' require_relative '../../core/worker' require_relative '../../core/workers/async' require_relative '../../core/workers/polling' diff --git a/lib/datadog/tracing/writer.rb b/lib/datadog/tracing/writer.rb index 2d734080af3..2044e2b8ed4 100644 --- a/lib/datadog/tracing/writer.rb +++ b/lib/datadog/tracing/writer.rb @@ -1,5 +1,3 @@ -require_relative '../core' - require_relative 'event' require_relative 'runtime/metrics' require_relative 'workers'