Method: GraphQL::Tracing::NewRelicTrace#initialize

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

#initialize(set_transaction_name: false, **_rest) ⇒ Object

Parameters:

  • set_transaction_name (Boolean) (defaults to: false)

    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].

[View source] [View on GitHub]

13
14
15
16
# File 'lib/graphql/tracing/new_relic_trace.rb', line 13

def initialize(set_transaction_name: false, **_rest)
  @set_transaction_name = set_transaction_name
  super
end