-
Notifications
You must be signed in to change notification settings - Fork 16
Hive Gateway v2 #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Hive Gateway v2 #956
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces the v2.0.0 release of the @graphql-hive/gateway package with significant improvements to OpenTelemetry instrumentation and upstream retry functionality. Key changes include a rework of upstream retry handling with new types and symbols, enhancements to tracing spans with updated context propagation and attributes, and updates to e2e tests to reflect new span expectations.
Reviewed Changes
Copilot reviewed 20 out of 22 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
packages/runtime/src/plugins/useUpstreamTimeout.ts | Simplified upstream timeout handling by removing the combined signal. |
packages/runtime/src/plugins/useUpstreamRetry.ts | Introduced RETRY_SYMBOL and helper functions for upstream retry with improved type definitions and executor adjustments. |
packages/runtime/src/index.ts | Updated exports to include new retry-related functions. |
packages/plugins/opentelemetry/** | Overhauled several utilities and span creation functions to improve OpenTelemetry trace context propagation and attribute setting. |
packages/plugins/hmac-upstream-signature/src/index.ts | Simplified updating of executionRequest.extensions by removing the setExecutionRequest helper. |
packages/fusion-runtime/** | Updated executor wrapping to integrate new instrumentation handling and unified graph manager changes. |
e2e/opentelemetry/** & e2e/cloudflare-workers/** | Adjusted test expectations and minor numeric literal formatting improvements. |
.changeset/pink-sloths-mate.md | Documented breaking changes and improvements for the OpenTelemetry integration. |
Files not reviewed (2)
- package.json: Language not supported
- packages/plugins/opentelemetry/package.json: Language not supported
Comments suppressed due to low confidence (1)
packages/plugins/opentelemetry/src/spans.ts:280
- The conditional check does not currently handle cases where the execution result is an async iterable. Consider extending the logic to properly handle async iterable results or update the comment if this behavior is intentional.
if (!isAsyncIterable(result) && result.errors && result.errors.length > 0) {
🚀 Snapshot Release (
|
Package | Version | Info |
---|---|---|
@graphql-tools/batch-delegate |
9.0.37-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/batch-execute |
9.0.17-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/delegate |
10.2.19-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/executor-http |
2.0.2-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/federation |
3.2.3-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/fusion-runtime |
0.11.14-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway |
1.14.3-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/nestjs |
1.0.14-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/plugin-aws-sigv4 |
1.0.11-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/plugin-opentelemetry |
2.0.0-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/plugin-prometheus |
1.3.46-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway-runtime |
1.9.0-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/stitch |
9.4.24-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/stitching-directives |
3.1.34-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/transport-http |
0.6.42-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/transport-http-callback |
0.6.1-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/wrap |
10.0.37-alpha-cf354599f0bca73b6f8b010a6747e42a17ef20d7 |
npm ↗︎ unpkg ↗︎ |
🚀 Snapshot Release (Node Docker Image)The latest changes of this PR are available as image on GitHub Container Registry (based on the declared
|
🚀 Snapshot Release (Bun Docker Image)The latest changes of this PR are available as image on GitHub Container Registry (based on the declared
|
b726aed
to
376b8e3
Compare
7ac617e
to
3563e2b
Compare
b561837
to
2db2c99
Compare
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Valentin Cocaud <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
No description provided.