Method: GraphQL::Tracing::NewRelicTracing#initialize

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

#initialize(options = {}) ⇒ NewRelicTracing

Returns a new instance of NewRelicTracing.

Parameters:

  • set_transaction_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_new_relic_transaction_name].


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

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