Sha256: 1aa27e92d09ab37181df7dea842a2098f9be26ae4591317935d8243473482845
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 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) def self.trace(key, metadata, &blk) NOTIFICATIONS_ENGINE.trace(key, metadata, &blk) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.13.4 | lib/graphql/tracing/active_support_notifications_tracing.rb |
graphql-1.13.3 | lib/graphql/tracing/active_support_notifications_tracing.rb |