From a7066b14bf299d3548c079a0ca11edbe1c462dd5 Mon Sep 17 00:00:00 2001 From: William Conti Date: Wed, 29 Jan 2025 11:41:10 -0500 Subject: [PATCH] stringify path arguments --- packages/datadog-plugin-graphql/src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/datadog-plugin-graphql/src/utils.js b/packages/datadog-plugin-graphql/src/utils.js index 5ad9f11f0f8..112fbed4f74 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 + attributes.path = exc.path.toString() } if (exc.message) { @@ -27,7 +27,7 @@ function extractErrorIntoSpanEvent (config, span, exc) { if (config.graphqlErrorExtensions) { for (const ext of config.graphqlErrorExtensions) { if (exc.extensions?.[ext]) { - attributes[`extensions.${ext}`] = exc.extensions[ext] + attributes[`extensions.${ext}`] = exc.extensions[ext].toString() } } }