Skip to content

Commit f4d99f6

Browse files
committed
Document platform tracing params
1 parent 073163b commit f4d99f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/graphql/tracing/platform_tracing.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ def fallback_transaction_name(context)
115115
#
116116
# If the key isn't present, the given block is called and the result is cached for `key`.
117117
#
118+
# @param ctx [GraphQL::Query::Context]
119+
# @param key [Class, GraphQL::Field] A part of the schema
120+
# @param trace_phase [Symbol] The stage of execution being traced (used by OpenTelementry tracing)
118121
# @return [String]
119122
def cached_platform_key(ctx, key, trace_phase)
120123
cache = ctx.namespace(self.class)[:platform_key_cache] ||= {}

0 commit comments

Comments
 (0)