Skip to content

Commit 5c6a1eb

Browse files
committed
do not add subgraph names when it is empty
1 parent 66a7d73 commit 5c6a1eb

File tree

1 file changed

+1
-1
lines changed
  • packages/plugins/opentelemetry/src

1 file changed

+1
-1
lines changed

packages/plugins/opentelemetry/src/spans.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export function setGraphQLExecutionResultAttributes(input: {
341341
return;
342342
}
343343

344-
if (input.subgraphNames) {
344+
if (input.subgraphNames?.length) {
345345
span.setAttribute(
346346
SEMATTRS_HIVE_GATEWAY_OPERATION_SUBGRAPH_NAMES,
347347
input.subgraphNames,

0 commit comments

Comments
 (0)