From f4d99f692d393cf5a1abbfe0e9bb61972ffba37f Mon Sep 17 00:00:00 2001 From: Robert Mosolgo Date: Tue, 7 Jun 2022 09:03:22 -0400 Subject: [PATCH] Document platform tracing params --- lib/graphql/tracing/platform_tracing.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/graphql/tracing/platform_tracing.rb b/lib/graphql/tracing/platform_tracing.rb index 61cee4c193..62891b80df 100644 --- a/lib/graphql/tracing/platform_tracing.rb +++ b/lib/graphql/tracing/platform_tracing.rb @@ -115,6 +115,9 @@ def fallback_transaction_name(context) # # If the key isn't present, the given block is called and the result is cached for `key`. # + # @param ctx [GraphQL::Query::Context] + # @param key [Class, GraphQL::Field] A part of the schema + # @param trace_phase [Symbol] The stage of execution being traced (used by OpenTelementry tracing) # @return [String] def cached_platform_key(ctx, key, trace_phase) cache = ctx.namespace(self.class)[:platform_key_cache] ||= {}