Skip to content

Commit 1c74992

Browse files
committed
Directly access helper method
Since the `UnifiedTrace` can get mixed in elsewhere, we must make sure to access the helper module directly by name.
1 parent 565ae85 commit 1c74992

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/datadog/tracing/contrib/graphql/unified_trace.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ def add_query_error_events(span, errors)
288288
@type_key => parsed_error.type,
289289
@stacktrace_key => parsed_error.backtrace,
290290
@message_key => graphql_error['message'],
291-
@locations_key => self.class.serialize_error_locations(graphql_error['locations']),
291+
@locations_key =>
292+
Datadog::Tracing::Contrib::GraphQL::UnifiedTrace.serialize_error_locations(graphql_error['locations']),
292293
@path_key => graphql_error['path'],
293294
)
294295
)

0 commit comments

Comments
 (0)