lib/opentelemetry/instrumentation/graphql/tracers/graphql_trace.rb in opentelemetry-instrumentation-graphql-0.26.1 vs lib/opentelemetry/instrumentation/graphql/tracers/graphql_trace.rb in opentelemetry-instrumentation-graphql-0.26.2
- old
+ new
@@ -124,10 +124,10 @@
attributes['graphql.lazy'] = false
tracer.in_span(platform_key, attributes: attributes, &block)
end
- def resolve_type_lazy(query:, type:, object:)
+ def resolve_type_lazy(query:, type:, object:, &block)
platform_key = @platform_resolve_type_key_cache[type]
attributes = {}
attributes['graphql.type.name'] = type.graphql_name
attributes['graphql.lazy'] = true