-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adding nested input variables in graphql plugin
GraphQL inputs are frequently nested like: { "input": { "value1": 1, "value2": 2 } } Currently this would result the following call: span.setAttribute("input", Object({ value1: 1, value2: 2})) But since SpanAttribute doesn't accept an Object type it silently fails and doesn't add the attribute at all. This commit goes depth-first into the nested structure and adds each variable with the appropriate path.
- Loading branch information
1 parent
62a04c7
commit 8290025
Showing
2 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters