Skip to content

Commit 7651237

Browse files
committed
add changeset
1 parent fe14dbe commit 7651237

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.changeset/little-ties-jog.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@graphql-hive/plugin-opentelemetry': minor
3+
'@graphql-hive/gateway-runtime': minor
4+
---
5+
6+
Expose GraphQLError as OpenTelemetry Events.
7+
8+
Errors contains in the result of a graphql operation are now reported as standalone OpenTelemetry
9+
Events (name `graphql.error`) instead of OpenTelemetry Exceptions.
10+
11+
This is aligned with the guidance of the Graphql OpenTelemetry working group.
12+
13+
It allows to add more graphql specific attributes to errors reported in a response:
14+
15+
- `message`: The error message
16+
- `path`: The path in the operation document from which the error originated
17+
- `locations`: The list of related locations in the document source
18+
- `coordinate`: The schema coordinate of the resolver which is the source of the error
19+
20+
This brings the experimental support of the `coordinate` error attribute in the Yoga Runtime. For
21+
security reason, this attribute is purposefully not serialized, to avoid leaking schema information
22+
to clients.

0 commit comments

Comments
 (0)