Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Jan 16, 2025
1 parent 81eaacc commit 87f61df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/datadog/tracing/contrib/graphql/unified_trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def trace(callable, trace_key, resource, kwargs, before: nil, after: nil)

ret = callable.call

puts "after.call:#{after},#{span}"
after.call(span) if after

ret
Expand All @@ -218,6 +219,7 @@ def multiplex_resource(multiplex)
# These are represented in the Datadog App as special GraphQL errors,
# given their event name `dd.graphql.query.error`.
def add_query_error_events(span, errors)
print("add_query_error_events:#{span},#{errors}")
errors.each do |error|
e = Core::Error.build_from(error)
err = error.to_h
Expand Down

0 comments on commit 87f61df

Please sign in to comment.