Update NDC TypeScript SDK to v8.2.0 and prepare v1.16.0 release#58
Merged
Conversation
paritosh-08
approved these changes
Jul 18, 2025
| import * as sdkInstrumentation from "@hasura/ndc-sdk-typescript/instrumentation"; | ||
| sdkInstrumentation.initTelemetry("ndc-lambda-sdk"); | ||
| import { version as packageVersion } from "../package.json"; | ||
| sdkInstrumentation.initTelemetry("ndc-lambda-sdk", undefined, undefined, "ndc-nodejs-lambda", packageVersion); |
| - Updated to support v0.2.0 of the NDC Spec. This is a very large update which adds new features and some breaking changes to the spec. | ||
| - If the `X-Hasura-NDC-Version` header is sent, the SDK will validate that the connector supports the incoming request's version and reject it if it does not. If no header is sent, no action is taken | ||
| - Added support for automatically returning compressed responses using gzip or deflate | ||
| - All OpenTelemetry trace spans are now annotated with the TypeScript SDK version (`resource.service.version: "8.2.0"`) and the connector name (`resource.service.connector.name: "ndc-nodejs-lambda"`) and version (`resource.service.connector.version: "1.16.0"`). The connector name and version can be overriden using `HASURA_CONNECTOR_NAME` and `HASURA_CONNECTOR_VERSION` environment variables. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the NDC TypeScript SDK to v8.2.0, which means this connector starts talking NDC Spec 0.2.0. Some minor changes were made to support this.
Tracing now also includes the connector name and version in the span attributes.
Completes ENG-1833