lib/opentelemetry/instrumentation/graphql/tracers/graphql_tracer.rb in opentelemetry-instrumentation-graphql-0.20.0 vs lib/opentelemetry/instrumentation/graphql/tracers/graphql_tracer.rb in opentelemetry-instrumentation-graphql-0.21.0
- old
+ new
@@ -72,12 +72,12 @@
def attributes_for(key, data)
attributes = {}
case key
when 'execute_query'
- attributes['selected_operation_name'] = data[:query].selected_operation_name if data[:query].selected_operation_name
- attributes['selected_operation_type'] = data[:query].selected_operation.operation_type
- attributes['query_string'] = data[:query].query_string
+ attributes['graphql.operation.name'] = data[:query].selected_operation_name if data[:query].selected_operation_name
+ attributes['graphql.operation.type'] = data[:query].selected_operation.operation_type
+ attributes['graphql.document'] = data[:query].query_string
end
attributes
end
end
end