From 87f61df2dd75c779a3eed9b52e7f618ba23d4dc5 Mon Sep 17 00:00:00 2001 From: Marco Costa Date: Thu, 16 Jan 2025 14:00:51 -0800 Subject: [PATCH] wip --- lib/datadog/tracing/contrib/graphql/unified_trace.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/datadog/tracing/contrib/graphql/unified_trace.rb b/lib/datadog/tracing/contrib/graphql/unified_trace.rb index 3347ca96cfa..6a68f0b3c16 100644 --- a/lib/datadog/tracing/contrib/graphql/unified_trace.rb +++ b/lib/datadog/tracing/contrib/graphql/unified_trace.rb @@ -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 @@ -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