Module: GraphQL::Tracing::NotificationsTrace

Includes:
PlatformTrace
Included in:
ActiveSupportNotificationsTrace
Defined in:
lib/graphql/tracing/notifications_trace.rb

Overview

This implementation forwards events to a notification handler (i.e. ActiveSupport::Notifications or Dry::Monitor::Notifications) with a graphql suffix.

Instance Method Summary collapse

Methods included from PlatformTrace

#platform_authorized_lazy, #platform_execute_field_lazy, #platform_resolve_type_lazy

Instance Method Details

#initialize(engine:, **rest) ⇒ Object

Initialize a new NotificationsTracing instance

Parameters:

  • engine (#instrument(key, metadata, block))

    The notifications engine to use



13
14
15
16
# File 'lib/graphql/tracing/notifications_trace.rb', line 13

def initialize(engine:, **rest)
  @notifications_engine = engine
  super
end