Skip to content

Commit

Permalink
[chore] Update upstream otel sub-module, add support for nodejs 22.x …
Browse files Browse the repository at this point in the history
…runtime (#1031)

* Update nodejs runtimes in tests and Otel-submodule

* add nodejs22.x in tests

* update go in workflows
  • Loading branch information
vasireddy99 authored Jan 2, 2025
1 parent 803a06d commit 35782f1
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-java@v4
if: ${{ matrix.language == 'java' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-build-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-java@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main-build-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:
fail-fast: false
matrix:
architecture: [ amd64, arm64 ]
runtime: [nodejs16.x, nodejs18.x]
runtime: [nodejs18.x, node20.x, nodejs22.x]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '18'
- name: Cache (NodeJS)
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-dotnet@v4
if: ${{ matrix.language == 'dotnet' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
submodules: true
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-java@v4
if: ${{ matrix.language == 'java' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ jobs:
# above, always setup go 1.18.
# if: ${{ env.TEST_LANGUAGE == 'go' }}
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- name: download layer tf file
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/soaking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '~1.21.10'
go-version: '~1.23.4'
check-latest: true
- uses: actions/setup-java@v4
if: ${{ matrix.language == 'java' }}
Expand Down
1 change: 0 additions & 1 deletion go/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ popd || exit
# Build sample app

cd ../opentelemetry-lambda/go/sample-apps/function || exit
go mod tidy
CGO_ENABLED=0 ./build.sh
1 change: 1 addition & 0 deletions nodejs/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "hello-lambda-function" {
collector_layer_arn = var.enable_collector_layer ? aws_lambda_layer_version.collector_layer[0].arn : null
sdk_layer_arn = aws_lambda_layer_version.sdk_layer.arn
tracing_mode = var.tracing_mode
runtime = var.runtime
}

resource "aws_iam_role_policy_attachment" "hello-lambda-cloudwatch-insights" {
Expand Down
5 changes: 5 additions & 0 deletions nodejs/integration-tests/aws-sdk/wrapper/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ variable "enable_collector_layer" {
default = false
}

variable "runtime" {
type = string
description = "NodeJS runtime version used for sample Lambda Function"
default = "nodejs18.x"
}
2 changes: 1 addition & 1 deletion nodejs/wrapper-adot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"author": "OpenTelemetry Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"devDependencies": {
"@opentelemetry/api": "^1.9.0",
Expand Down

0 comments on commit 35782f1

Please sign in to comment.