Module: GraphQL::Tracing::ActiveSupportNotificationsTracing

Defined in:
lib/graphql/tracing/active_support_notifications_tracing.rb

Overview

This implementation forwards events to ActiveSupport::Notifications with a graphql suffix.

See KEYS for event names

Constant Summary collapse

KEYS =

A cache of frequently-used keys to avoid needless string allocations

NotificationsTracing::KEYS
NOTIFICATIONS_ENGINE =
NotificationsTracing.new(ActiveSupport::Notifications)

Class Method Summary collapse

Class Method Details

.trace(key, metadata, &blk) ⇒ Object



18
19
20
# File 'lib/graphql/tracing/active_support_notifications_tracing.rb', line 18

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