File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments