Sha256: 226ae6abfef7e0498fc98837e9ccd934161baadaa5a5cde889b3b14d39bef3cb

Contents?: true

Size: 670 Bytes

Versions: 115

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

require 'graphql/tracing/notifications_tracing'

module GraphQL
  module Tracing
    # This implementation forwards events to ActiveSupport::Notifications
    # with a `graphql` suffix.
    #
    # @see KEYS for event names
    module ActiveSupportNotificationsTracing
      # A cache of frequently-used keys to avoid needless string allocations
      KEYS = NotificationsTracing::KEYS
      NOTIFICATIONS_ENGINE = NotificationsTracing.new(ActiveSupport::Notifications) if defined?(ActiveSupport::Notifications)

      def self.trace(key, metadata, &blk)
        NOTIFICATIONS_ENGINE.trace(key, metadata, &blk)
      end
    end
  end
end

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
graphql-2.3.22 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.1.15 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-1.13.24 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.0.32 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.1.14 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.2.17 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.3.21 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.7 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.6 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.5 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.4 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.3 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.2 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.1 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.4.0 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.3.20 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.3.19 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.3.18 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.3.17 lib/graphql/tracing/active_support_notifications_tracing.rb
graphql-2.3.16 lib/graphql/tracing/active_support_notifications_tracing.rb