We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e16b4a commit d78a028Copy full SHA for d78a028
instrumentation/graphql/lib/opentelemetry/instrumentation/graphql/tracers/graphql_trace.rb
@@ -99,7 +99,7 @@ def analyze_query(query:, &block)
99
def execute_query(query:, &block)
100
attributes = {}
101
attributes['graphql.operation.name'] = query.selected_operation_name if query.selected_operation_name
102
- if query.is_a?(::GraphQL::Query::Partial)
+ if defined?(::GraphQL::Query::Partial) && query.is_a?(::GraphQL::Query::Partial)
103
attributes['graphql.partial.path'] = query.path.to_s
104
else
105
attributes['graphql.operation.type'] = query.selected_operation.operation_type
0 commit comments