Sha256: 86fc4ebb61f9295690c63fea7423c1dab201cd8697a8b3b56a606f2e77f580d1

Contents?: true

Size: 749 Bytes

Versions: 41

Compression:

Stored size: 749 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  module Tracing
    class AppsignalTracing < PlatformTracing
      self.platform_keys = {
        "lex" => "lex.graphql",
        "parse" => "parse.graphql",
        "validate" => "validate.graphql",
        "analyze_query" => "analyze.graphql",
        "analyze_multiplex" => "analyze.graphql",
        "execute_multiplex" => "execute.graphql",
        "execute_query" => "execute.graphql",
        "execute_query_lazy" => "execute.graphql",
      }

      def platform_trace(platform_key, key, data)
        Appsignal.instrument(platform_key) do
          yield
        end
      end

      def platform_field_key(type, field)
        "#{type.name}.#{field.name}.graphql"
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
graphql-1.8.18 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.17 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.16 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.15 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.14 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.13 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.12 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.11 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.10 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.9 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.8 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.7 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.6 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.5 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.4 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.3 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.2 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.1 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.0 lib/graphql/tracing/appsignal_tracing.rb
graphql-1.8.0.pre11 lib/graphql/tracing/appsignal_tracing.rb