Skip to content

Commit

Permalink
Merge pull request #2826 from mscrivo/scrivo/fix-circular-requires
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc authored May 5, 2023
2 parents a0b2213 + cd3a5e4 commit 99997b7
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 28 deletions.
1 change: 0 additions & 1 deletion lib/datadog/tracing/buffer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../core'
require_relative '../core/environment/ext'
require_relative '../core/buffer/thread_safe'
require_relative '../core/buffer/cruby'
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/contrib/patcher.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../../core'
require_relative '../../core/utils/only_once'

module Datadog
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/contrib/roda/patcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# typed: ignore

require_relative 'patcher'
require_relative '../patcher'
require_relative 'ext'
require_relative 'instrumentation'

Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/contrib/status_code_matcher.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'set'

require_relative '../../core'
require_relative '../metadata/ext'

module Datadog
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/correlation.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../core'
require_relative 'utils'
require_relative 'metadata/ext'

Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/event.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../core'

module Datadog
module Tracing
# Event behavior and DSL
Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/pipeline.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../core'

require_relative 'pipeline/span_filter'
require_relative 'pipeline/span_processor'

Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/runtime/metrics.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require_relative '../../core'

module Datadog
module Tracing
module Runtime
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/sampling/rate_by_service_sampler.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../../core'
require_relative 'rate_by_key_sampler'

module Datadog
Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/sampling/rate_sampler.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../../core'

require_relative 'sampler'
require_relative '../utils'

Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/sampling/rule.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../../core'

require_relative 'matcher'
require_relative 'rate_sampler'

Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/sampling/rule_sampler.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../../core'

require_relative 'ext'
require_relative 'rate_limiter'
require_relative 'rule'
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/span_operation.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'time'

require_relative '../core'
require_relative '../core/environment/identity'
require_relative '../core/utils'
require_relative '../core/utils/time'
Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/sync_writer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require_relative '../core'

require_relative 'pipeline'
require_relative 'runtime/metrics'
require_relative 'writer'
Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/trace_operation.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../core'
require_relative '../core/environment/identity'
require_relative '../core/utils'

Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/tracer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../core'
require_relative '../core/environment/ext'
require_relative '../core/environment/socket'

Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/workers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../core'

require_relative 'buffer'
require_relative 'pipeline'

Expand Down
1 change: 0 additions & 1 deletion lib/datadog/tracing/workers/trace_writer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require_relative '../../core'
require_relative '../../core/worker'
require_relative '../../core/workers/async'
require_relative '../../core/workers/polling'
Expand Down
2 changes: 0 additions & 2 deletions lib/datadog/tracing/writer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require_relative '../core'

require_relative 'event'
require_relative 'runtime/metrics'
require_relative 'workers'
Expand Down

0 comments on commit 99997b7

Please sign in to comment.