Skip to content

Commit

Permalink
stringify path arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
wconti27 committed Jan 29, 2025
1 parent 54caa00 commit a7066b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/datadog-plugin-graphql/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function extractErrorIntoSpanEvent (config, span, exc) {
}

if (exc.path) {
attributes.path = exc.path
attributes.path = exc.path.toString()
}

if (exc.message) {
Expand All @@ -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()
}
}
}
Expand Down

0 comments on commit a7066b1

Please sign in to comment.