module GraphQL::Tracing::ActiveSupportNotificationsTrace
This implementation forwards events to ActiveSupport::Notifications with a graphql suffix.
Examples
Example: Sending execution events to ActiveSupport::Notifications
class MySchema < GraphQL::Schema trace_with(GraphQL::Tracing::ActiveSupportNotificationsTrace) end
Example: Subscribing to GraphQL events with ActiveSupport::Notifications
ActiveSupport::Notifications.subscribe(/graphql/) do |event| pp event.name pp event.payload end
Public Class Methods
# File lib/graphql/tracing/active_support_notifications_trace.rb, line 30 def initialize(engine: ActiveSupport::Notifications, **rest) super end
Calls superclass method
GraphQL::Tracing::NotificationsTrace::new