diff --git a/packages/datadog-plugin-graphql/src/utils.js b/packages/datadog-plugin-graphql/src/utils.js index 112fbed4f74..844ed62442c 100644 --- a/packages/datadog-plugin-graphql/src/utils.js +++ b/packages/datadog-plugin-graphql/src/utils.js @@ -17,7 +17,7 @@ function extractErrorIntoSpanEvent (config, span, exc) { } if (exc.path) { - attributes.path = exc.path.toString() + attributes.path = exc.path.map(String) } if (exc.message) {