Method: GraphQL::Tracing::AppOpticsTrace#authorized
- Defined in:
- lib/graphql/tracing/appoptics_trace.rb
permalink #authorized(**data) ⇒ Object
[View source] [View on GitHub]
90 91 92 93 94 95 96 97 98 99 |
# File 'lib/graphql/tracing/appoptics_trace.rb', line 90 def (**data) return super if !defined?(AppOpticsAPM) || gql_config[:enabled] == false layer = @platform_key_cache[AppOpticsTrace].[data[:type]] kvs = (data, layer) ::AppOpticsAPM::SDK.trace(layer, kvs) do kvs.clear # we don't have to send them twice super end end |