Method: GraphQL::Tracing::AppsignalTracing#initialize

Defined in:
lib/graphql/tracing/appsignal_tracing.rb

#initialize(options = {}) ⇒ AppsignalTracing

Returns a new instance of AppsignalTracing.

Parameters:

  • set_action_name (Boolean)

    If true, the GraphQL operation name will be used as the transaction name. This is not advised if you run more than one query per HTTP request, for example, with graphql-client or multiplexing. It can also be specified per-query with context[:set_appsignal_action_name].

[View source] [View on GitHub]

22
23
24
25
# File 'lib/graphql/tracing/appsignal_tracing.rb', line 22

def initialize(options = {})
  @set_action_name = options.fetch(:set_action_name, false)
  super
end