Skip to content

Commit 19dcf75

Browse files
committed
Add example for skipping authorized and resolve type traces
1 parent 4d325ef commit 19dcf75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/graphql/tracing/new_relic_trace.rb

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module Tracing
1313
# # Optional, use the operation name to set the new relic transaction name:
1414
# # trace_with GraphQL::Tracing::NewRelicTrace, set_transaction_name: true
1515
# end
16+
#
17+
# @example Installing without trace events for `authorized?` or `resolve_type` calls
18+
# trace_with GraphQL::Tracing::NewRelicTrace, trace_authorized: false, trace_resolve_type: false
1619
module NewRelicTrace
1720
# @param set_transaction_name [Boolean] If true, the GraphQL operation name will be used as the transaction name.
1821
# This is not advised if you run more than one query per HTTP request, for example, with `graphql-client` or multiplexing.

0 commit comments

Comments
 (0)