diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml index 73707f48b7..79e022cdeb 100644 --- a/.github/workflows/ci-nodejs.yml +++ b/.github/workflows/ci-nodejs.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - uses: actions/cache@v4 with: path: ~/.npm diff --git a/.github/workflows/release-layer-nodejs.yml b/.github/workflows/release-layer-nodejs.yml index fd4639c061..0187d04dc3 100644 --- a/.github/workflows/release-layer-nodejs.yml +++ b/.github/workflows/release-layer-nodejs.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - name: Build run: | @@ -53,7 +53,7 @@ jobs: with: name: opentelemetry-nodejs-layer.zip path: nodejs/packages/layer/build/opentelemetry-nodejs-layer.zip - + - name: Add Binary to Release run: | gh release upload ${{github.ref_name}} nodejs/packages/layer/build/opentelemetry-nodejs-layer.zip diff --git a/README.md b/README.md index 7d86b6efb1..9063d784b7 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ These 2 layers are meant to be used in conjunction to instrument your lambda fun * **What exporters/receivers/processors are included from the OpenTelemetry Collector?** > You can check out [the stripped-down collector's imports](https://github.com/open-telemetry/opentelemetry-lambda/blob/main/collector/lambdacomponents/default.go#L18) in this repository for a full list of currently included components. - + > Self-built binaries of the collector have **experimental** support for a custom set of connectors/exporters/receivers/processors. For more information, see [(Experimental) Customized collector build](./collector/README.md#experimental-customized-collector-build) * **Is the Lambda layer provided or do I need to build it and distribute it myself?** > This repository provides pre-built Lambda layers, their ARNs are available in the [Releases](https://github.com/open-telemetry/opentelemetry-lambda/releases). You can also build the layers manually and publish them in your AWS account. This repo has files to facilitate doing that. More information is provided in [the Collector folder's README](collector/README.md). @@ -100,10 +100,6 @@ The table below captures the state of various features and their levels of suppo * `N/A` not applicable to the particular language * blank cell means the status of the feature is not known. -The following are runtimes which are no longer or not yet supported by this repository: - -* Node.js 12 - not [officially supported](https://github.com/open-telemetry/opentelemetry-js#supported-runtimes) by OpenTelemetry JS - [1]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/faas-spans.md#general-attributes [2]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/faas-spans.md#incoming-invocations [3]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/faas-spans.md#outgoing-invocations diff --git a/nodejs/README.md b/nodejs/README.md index cb2af9ec5c..a2870e51f4 100644 --- a/nodejs/README.md +++ b/nodejs/README.md @@ -8,6 +8,19 @@ To use, add the layer to your function configuration and then set `AWS_LAMBDA_EX [AWS SDK v2 instrumentation](https://github.com/aspecto-io/opentelemetry-ext-js/tree/master/packages/instrumentation-aws-sdk) is also included and loaded automatically if you use the AWS SDK v2. +## Supported Runtimes + +| Platform Version | Supported | +| ------------------- | --------------------------------------------- | +| `nodejs22.x` | :heavy_check_mark: | +| `nodejs20.x` | :heavy_check_mark: | +| `nodejs18.x` | :heavy_check_mark: | +| Older Node Versions | See [Node Support](#node-support) | + +### Node Support + +Only Node.js Active or Maintenance LTS versions are supported. + ## Building To build the layer and sample applications in this `nodejs` folder: @@ -31,5 +44,4 @@ You'll find the generated layer zip file at `./packages/layer/build/layer.zip`. Sample applications are provided to show usage of the above layer. - Application using AWS SDK - shows using the wrapper with an application using AWS SDK without code change. - - [Using layer built from source](./integration-tests/aws-sdk) - - [WIP] [Using OTel Public Layer](./sample-apps/aws-sdk) + - [WIP] [Using OTel Public Layer](./sample-apps/aws-sdk)