diff --git a/lib/graphql/tracing/active_support_notifications_trace.rb b/lib/graphql/tracing/active_support_notifications_trace.rb index 57b2ed3004..fde3f8a170 100644 --- a/lib/graphql/tracing/active_support_notifications_trace.rb +++ b/lib/graphql/tracing/active_support_notifications_trace.rb @@ -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 diff --git a/lib/graphql/tracing/active_support_notifications_tracing.rb b/lib/graphql/tracing/active_support_notifications_tracing.rb index 52fbc23c5e..eee780ccab 100644 --- a/lib/graphql/tracing/active_support_notifications_tracing.rb +++ b/lib/graphql/tracing/active_support_notifications_tracing.rb @@ -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 diff --git a/lib/graphql/tracing/appoptics_trace.rb b/lib/graphql/tracing/appoptics_trace.rb index 2ea36c59be..8121871bb2 100644 --- a/lib/graphql/tracing/appoptics_trace.rb +++ b/lib/graphql/tracing/appoptics_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing diff --git a/lib/graphql/tracing/appoptics_tracing.rb b/lib/graphql/tracing/appoptics_tracing.rb index e24d1a06d1..9045c16b08 100644 --- a/lib/graphql/tracing/appoptics_tracing.rb +++ b/lib/graphql/tracing/appoptics_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing diff --git a/lib/graphql/tracing/appsignal_trace.rb b/lib/graphql/tracing/appsignal_trace.rb index 0f639dc1da..ec4c954c31 100644 --- a/lib/graphql/tracing/appsignal_trace.rb +++ b/lib/graphql/tracing/appsignal_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module AppsignalTrace diff --git a/lib/graphql/tracing/appsignal_tracing.rb b/lib/graphql/tracing/appsignal_tracing.rb index 413cd9711e..232be5cfc1 100644 --- a/lib/graphql/tracing/appsignal_tracing.rb +++ b/lib/graphql/tracing/appsignal_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing class AppsignalTracing < PlatformTracing diff --git a/lib/graphql/tracing/data_dog_trace.rb b/lib/graphql/tracing/data_dog_trace.rb index 33c08850a3..24f168914b 100644 --- a/lib/graphql/tracing/data_dog_trace.rb +++ b/lib/graphql/tracing/data_dog_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module DataDogTrace diff --git a/lib/graphql/tracing/data_dog_tracing.rb b/lib/graphql/tracing/data_dog_tracing.rb index ef3d2fc975..6104b7b1f6 100644 --- a/lib/graphql/tracing/data_dog_tracing.rb +++ b/lib/graphql/tracing/data_dog_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing class DataDogTracing < PlatformTracing diff --git a/lib/graphql/tracing/legacy_hooks_trace.rb b/lib/graphql/tracing/legacy_hooks_trace.rb index ee488019a0..2073445330 100644 --- a/lib/graphql/tracing/legacy_hooks_trace.rb +++ b/lib/graphql/tracing/legacy_hooks_trace.rb @@ -1,4 +1,7 @@ # frozen_string_literal: true + +require "graphql/tracing" + module GraphQL module Tracing module LegacyHooksTrace diff --git a/lib/graphql/tracing/legacy_trace.rb b/lib/graphql/tracing/legacy_trace.rb index 0663d37922..a87e2b72a1 100644 --- a/lib/graphql/tracing/legacy_trace.rb +++ b/lib/graphql/tracing/legacy_trace.rb @@ -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. diff --git a/lib/graphql/tracing/new_relic_trace.rb b/lib/graphql/tracing/new_relic_trace.rb index 0b455d5231..826fe8a78b 100644 --- a/lib/graphql/tracing/new_relic_trace.rb +++ b/lib/graphql/tracing/new_relic_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module NewRelicTrace diff --git a/lib/graphql/tracing/new_relic_tracing.rb b/lib/graphql/tracing/new_relic_tracing.rb index cf7431728e..ca72a88e4f 100644 --- a/lib/graphql/tracing/new_relic_tracing.rb +++ b/lib/graphql/tracing/new_relic_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing class NewRelicTracing < PlatformTracing diff --git a/lib/graphql/tracing/notifications_trace.rb b/lib/graphql/tracing/notifications_trace.rb index 406068aa53..f671497668 100644 --- a/lib/graphql/tracing/notifications_trace.rb +++ b/lib/graphql/tracing/notifications_trace.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require "graphql/tracing/platform_trace" +require "graphql/tracing" module GraphQL module Tracing diff --git a/lib/graphql/tracing/notifications_tracing.rb b/lib/graphql/tracing/notifications_tracing.rb index 9e50f18e46..4284ec66f2 100644 --- a/lib/graphql/tracing/notifications_tracing.rb +++ b/lib/graphql/tracing/notifications_tracing.rb @@ -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. diff --git a/lib/graphql/tracing/platform_trace.rb b/lib/graphql/tracing/platform_trace.rb index b395914e67..efe098e27f 100644 --- a/lib/graphql/tracing/platform_trace.rb +++ b/lib/graphql/tracing/platform_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module PlatformTrace diff --git a/lib/graphql/tracing/platform_tracing.rb b/lib/graphql/tracing/platform_tracing.rb index 6f0984d92e..e48e90fd95 100644 --- a/lib/graphql/tracing/platform_tracing.rb +++ b/lib/graphql/tracing/platform_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing # Each platform provides: diff --git a/lib/graphql/tracing/prometheus_trace.rb b/lib/graphql/tracing/prometheus_trace.rb index 8b7f8a57d9..527aeeb86e 100644 --- a/lib/graphql/tracing/prometheus_trace.rb +++ b/lib/graphql/tracing/prometheus_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module PrometheusTrace diff --git a/lib/graphql/tracing/prometheus_trace/graphql_collector.rb b/lib/graphql/tracing/prometheus_trace/graphql_collector.rb index e351a639c5..87304af015 100644 --- a/lib/graphql/tracing/prometheus_trace/graphql_collector.rb +++ b/lib/graphql/tracing/prometheus_trace/graphql_collector.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module PrometheusTrace diff --git a/lib/graphql/tracing/prometheus_tracing.rb b/lib/graphql/tracing/prometheus_tracing.rb index e76da521c1..54fc6d3458 100644 --- a/lib/graphql/tracing/prometheus_tracing.rb +++ b/lib/graphql/tracing/prometheus_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing class PrometheusTracing < PlatformTracing diff --git a/lib/graphql/tracing/scout_trace.rb b/lib/graphql/tracing/scout_trace.rb index ac42d795e1..3aa5c26d4c 100644 --- a/lib/graphql/tracing/scout_trace.rb +++ b/lib/graphql/tracing/scout_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module ScoutTrace diff --git a/lib/graphql/tracing/scout_tracing.rb b/lib/graphql/tracing/scout_tracing.rb index 2b5fecaf6a..32cf19aaed 100644 --- a/lib/graphql/tracing/scout_tracing.rb +++ b/lib/graphql/tracing/scout_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing class ScoutTracing < PlatformTracing diff --git a/lib/graphql/tracing/sentry_trace.rb b/lib/graphql/tracing/sentry_trace.rb index f37cea19c2..e948e47dec 100644 --- a/lib/graphql/tracing/sentry_trace.rb +++ b/lib/graphql/tracing/sentry_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module SentryTrace diff --git a/lib/graphql/tracing/statsd_trace.rb b/lib/graphql/tracing/statsd_trace.rb index b5121b5753..a7a98f56ff 100644 --- a/lib/graphql/tracing/statsd_trace.rb +++ b/lib/graphql/tracing/statsd_trace.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing module StatsdTrace diff --git a/lib/graphql/tracing/statsd_tracing.rb b/lib/graphql/tracing/statsd_tracing.rb index 28e1a30772..0db9b37b71 100644 --- a/lib/graphql/tracing/statsd_tracing.rb +++ b/lib/graphql/tracing/statsd_tracing.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +require "graphql/tracing" + module GraphQL module Tracing class StatsdTracing < PlatformTracing diff --git a/lib/graphql/tracing/trace.rb b/lib/graphql/tracing/trace.rb index 8834c2d59c..ef9a3722a8 100644 --- a/lib/graphql/tracing/trace.rb +++ b/lib/graphql/tracing/trace.rb @@ -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.