Skip to content

Commit

Permalink
fix: analyze span names in GraphQL instrumentation (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw authored Apr 10, 2024
1 parent feefa88 commit b391e8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def validate(query:, validate:, &block)
end

def analyze_multiplex(multiplex:, &block)
tracer.in_span('graphql.analyze_query', &block)
tracer.in_span('graphql.analyze_multiplex', &block)
end

def analyze_query(query:, &block)
tracer.in_span('graphql.analyze_multiplex', &block)
tracer.in_span('graphql.analyze_query', &block)
end

def execute_query(query:, &block)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
'graphql.lex',
'graphql.parse',
'graphql.validate',
'graphql.analyze_multiplex',
'graphql.analyze_query',
'graphql.analyze_multiplex',
'graphql.execute_query',
'graphql.execute_query_lazy',
'graphql.execute_multiplex'
Expand Down

0 comments on commit b391e8e

Please sign in to comment.