@graphql-hive/gateway-runtime 2.3.6-alpha-6eb80c8595c2094712a91dceffae42799f922807 → 2.4.0-alpha-76512376d2c99167b187648bb90a1d0068fc8f74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -5
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
# @graphql-hive/gateway-runtime
|
|
2
2
|
|
|
3
|
-
## 2.
|
|
4
|
-
###
|
|
3
|
+
## 2.4.0-alpha-76512376d2c99167b187648bb90a1d0068fc8f74
|
|
4
|
+
### Minor Changes
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
- [#
|
|
8
|
+
- [#1636](https://github.com/graphql-hive/gateway/pull/1636) [`7651237`](https://github.com/graphql-hive/gateway/commit/76512376d2c99167b187648bb90a1d0068fc8f74) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Expose GraphQLError as OpenTelemetry Events.
|
|
9
|
+
|
|
10
|
+
Errors contains in the result of a graphql operation are now reported as standalone OpenTelemetry
|
|
11
|
+
Events (name `graphql.error`) instead of OpenTelemetry Exceptions.
|
|
12
|
+
|
|
13
|
+
This is aligned with the guidance of the Graphql OpenTelemetry working group.
|
|
14
|
+
|
|
15
|
+
It allows to add more graphql specific attributes to errors reported in a response:
|
|
9
16
|
|
|
10
|
-
-
|
|
11
|
-
-
|
|
17
|
+
- `message`: The error message
|
|
18
|
+
- `path`: The path in the operation document from which the error originated
|
|
19
|
+
- `locations`: The list of related locations in the document source
|
|
20
|
+
- `coordinate`: The schema coordinate of the resolver which is the source of the error
|
|
21
|
+
|
|
22
|
+
This brings the experimental support of the `coordinate` error attribute in the Yoga Runtime. For
|
|
23
|
+
security reason, this attribute is purposefully not serialized, to avoid leaking schema information
|
|
24
|
+
to clients.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
12
28
|
- Updated dependencies []:
|
|
13
29
|
- @graphql-mesh/hmac-upstream-signature@2.0.8
|
|
14
30
|
|
package/dist/index.cjs
CHANGED
|
@@ -143,7 +143,8 @@ const getExecuteFnFromExecutor = utils.memoize1(
|
|
|
143
143
|
operationName: args.operationName ?? void 0,
|
|
144
144
|
rootValue: args.rootValue,
|
|
145
145
|
context: args.contextValue,
|
|
146
|
-
signal: args.signal
|
|
146
|
+
signal: args.signal,
|
|
147
|
+
schemaCoordinateInErrors: args.schemaCoordinateInErrors
|
|
147
148
|
});
|
|
148
149
|
};
|
|
149
150
|
}
|
package/dist/index.js
CHANGED
|
@@ -142,7 +142,8 @@ const getExecuteFnFromExecutor = memoize1(
|
|
|
142
142
|
operationName: args.operationName ?? void 0,
|
|
143
143
|
rootValue: args.rootValue,
|
|
144
144
|
context: args.contextValue,
|
|
145
|
-
signal: args.signal
|
|
145
|
+
signal: args.signal,
|
|
146
|
+
schemaCoordinateInErrors: args.schemaCoordinateInErrors
|
|
146
147
|
});
|
|
147
148
|
};
|
|
148
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/gateway-runtime",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0-alpha-76512376d2c99167b187648bb90a1d0068fc8f74",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@envelop/disable-introspection": "^9.0.0",
|
|
50
50
|
"@envelop/generic-auth": "^11.0.0",
|
|
51
51
|
"@envelop/instrumentation": "^1.0.0",
|
|
52
|
-
"@graphql-hive/core": "^0.
|
|
52
|
+
"@graphql-hive/core": "^0.13.2",
|
|
53
53
|
"@graphql-hive/logger": "^1.0.9",
|
|
54
54
|
"@graphql-hive/pubsub": "^2.1.1",
|
|
55
55
|
"@graphql-hive/signal": "^2.0.0",
|
|
56
|
-
"@graphql-hive/yoga": "^0.
|
|
56
|
+
"@graphql-hive/yoga": "^0.42.4",
|
|
57
57
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
58
58
|
"@graphql-mesh/fusion-runtime": "^1.5.1",
|
|
59
59
|
"@graphql-mesh/hmac-upstream-signature": "^2.0.8",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"graphql": "^16.12.0",
|
|
96
96
|
"graphql-sse": "^2.6.0",
|
|
97
97
|
"html-minifier-terser": "7.2.0",
|
|
98
|
-
"pkgroll": "2.
|
|
98
|
+
"pkgroll": "2.20.1",
|
|
99
99
|
"react": "^19.2.0",
|
|
100
100
|
"react-dom": "^19.2.0",
|
|
101
101
|
"tsx": "4.20.6"
|