Skip to content

Commit

Permalink
require parent Tracing module before defining children
Browse files Browse the repository at this point in the history
  • Loading branch information
zvkemp committed Dec 9, 2024
1 parent dd24fce commit 3d7eaaa
Show file tree
Hide file tree
Showing 25 changed files with 52 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/graphql/tracing/active_support_notifications_trace.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'graphql/tracing/notifications_trace'
require "graphql/tracing"
require "graphql/tracing/notifications_trace"

module GraphQL
module Tracing
Expand Down
3 changes: 2 additions & 1 deletion lib/graphql/tracing/active_support_notifications_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'graphql/tracing/notifications_tracing'
require "graphql/tracing"
require "graphql/tracing/notifications_tracing"

module GraphQL
module Tracing
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/appoptics_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing

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

require "graphql/tracing"

module GraphQL
module Tracing

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

require "graphql/tracing"

module GraphQL
module Tracing
module AppsignalTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/appsignal_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
class AppsignalTracing < PlatformTracing
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/data_dog_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module DataDogTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/data_dog_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
class DataDogTracing < PlatformTracing
Expand Down
3 changes: 3 additions & 0 deletions lib/graphql/tracing/legacy_hooks_trace.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module LegacyHooksTrace
Expand Down
3 changes: 3 additions & 0 deletions lib/graphql/tracing/legacy_trace.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
# This trace class calls legacy-style tracer with payload hashes.
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/new_relic_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module NewRelicTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/new_relic_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
class NewRelicTracing < PlatformTracing
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql/tracing/notifications_trace.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "graphql/tracing/platform_trace"
require "graphql/tracing"

module GraphQL
module Tracing
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/notifications_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
# This implementation forwards events to a notification handler (i.e.
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/platform_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module PlatformTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/platform_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
# Each platform provides:
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/prometheus_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module PrometheusTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/prometheus_trace/graphql_collector.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module PrometheusTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/prometheus_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
class PrometheusTracing < PlatformTracing
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/scout_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module ScoutTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/scout_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
class ScoutTracing < PlatformTracing
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/sentry_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module SentryTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/statsd_trace.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
module StatsdTrace
Expand Down
2 changes: 2 additions & 0 deletions lib/graphql/tracing/statsd_tracing.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
class StatsdTracing < PlatformTracing
Expand Down
3 changes: 3 additions & 0 deletions lib/graphql/tracing/trace.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# frozen_string_literal: true

require "graphql/tracing"

module GraphQL
module Tracing
# This is the base class for a `trace` instance whose methods are called during query execution.
Expand Down

0 comments on commit 3d7eaaa

Please sign in to comment.