Skip to content

Commit fa295a3

Browse files
authored
Add node 18 to tests and remove EoL node versions (#3048)
1 parent b891509 commit fa295a3

File tree

58 files changed

+92
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+92
-126
lines changed

.github/workflows/unit-test.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
node_version: ["8", "10", "12", "14", "16"]
13+
node_version:
14+
- "14"
15+
- "16"
16+
- "18"
1417
runs-on: ubuntu-latest
1518
env:
1619
NPM_CONFIG_UNSAFE_PERM: true

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ All notable changes to this project will be documented in this file.
1717

1818
### :house: (Internal)
1919

20+
* test: add node 18 and remove EoL node versions [#3048](https://github.com/open-telemetry/opentelemetry-js/pull/3048) @dyladan
21+
2022
## 1.3.1
2123

2224
### :bug: (Bug Fix)

README.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This is the JavaScript version of [OpenTelemetry](https://opentelemetry.io/), a
4646
## Compatibility Matrix
4747

4848
| API Version | Core version | Experimental Packages |
49-
| ----------- |--------------| --------------------- |
49+
| ----------- | ------------ | --------------------- |
5050
| 1.1.x | 1.1.x | 0.28.x |
5151
| 1.0.x | 1.0.x | 0.26.x, 0.27.x |
5252
| 1.0.x | 0.26.x | ----- |
@@ -138,19 +138,18 @@ If you are a library author looking to build OpenTelemetry into your library, pl
138138

139139
## Supported Runtimes
140140

141-
| Platform Version | Supported |
142-
|------------------|-------------------------------------------------|
143-
| Node.JS `v16` ||
144-
| Node.JS `v14` ||
145-
| Node.JS `v12` ||
146-
| Node.JS `v10` ||
147-
| Node.JS `v8` | See [Node Support](#node-support) below |
148-
| Web Browsers | ✅ See [Browser Support](#browser-support) below |
141+
| Platform Version | Supported |
142+
| ------------------- | ----------------------------------------------- |
143+
| Node.JS `v18` ||
144+
| Node.JS `v16` ||
145+
| Node.JS `v14` ||
146+
| Older Node Versions | See [Node Support](#node-support) |
147+
| Web Browsers | ✅ See [Browser Support](#browser-support) below |
149148

150149
### Node Support
151150

152-
Automated tests are run using the latest release of each currently active version of Node.JS.
153-
While Node.JS v8 and v10 are no longer supported by the Node.JS team, the latest versions of Node.JS v8 and v10 are still included in our testing suite.
151+
Only Node.js Active or Maintenance LTS versions are supported.
152+
Previous versions of node _may_ work, but they are not tested by OpenTelemetry and they are not guaranteed to work.
154153
Please note that versions of Node.JS v8 prior to `v8.12.0` will NOT work, because OpenTelemetry Node depends on the `perf_hooks` module introduced in `v8.5.0` and `performance.timeOrigin` that is set correctly starting in `v8.12.0`.
155154

156155
### Browser Support
@@ -161,7 +160,7 @@ There is currently no list of officially supported browsers, but OpenTelemetry i
161160
## Feature Status
162161

163162
| Signal | API Status | SDK Status |
164-
|---------|-------------|-------------------|
163+
| ------- | ----------- | ----------------- |
165164
| Tracing | Stable | Release Candidate |
166165
| Metrics | Development | Development |
167166
| Logs | Roadmap | Roadmap |
@@ -220,18 +219,18 @@ Maintainers ([@open-telemetry/js-maintainers](https://github.com/orgs/open-telem
220219
### API
221220

222221
| Package | Description |
223-
|----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
222+
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
224223
| [@opentelemetry/api][otel-api] | This package provides TypeScript interfaces, enums and no-op implementations for the OpenTelemetry core trace and metrics model. It is intended for use both on the server and in the browser. |
225224
| [@opentelemetry/core][otel-core] | This package provides default and no-op implementations of the OpenTelemetry api for trace and metrics. It's intended for use both on the server and in the browser. |
226225

227226
### Implementation / SDKs
228227

229-
| Package | Description |
230-
|----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
231-
| [@opentelemetry/sdk-trace-base][otel-tracing] | This module provides a full control over instrumentation and span creation. It doesn't load [`async_hooks`](https://nodejs.org/api/async_hooks.html) or any instrumentation by default. It is intended for use both on the server and in the browser. |
232-
| [@opentelemetry/sdk-metrics-base][otel-metrics] | This module provides instruments and meters for reporting of time series data. |
233-
| [@opentelemetry/sdk-trace-node][otel-node] | This module provides automatic tracing for Node.js applications. It is intended for use on the server only. |
234-
| [@opentelemetry/sdk-trace-web][otel-web] | This module provides automated instrumentation and tracing for Web applications. It is intended for use in the browser only. |
228+
| Package | Description |
229+
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
230+
| [@opentelemetry/sdk-trace-base][otel-tracing] | This module provides a full control over instrumentation and span creation. It doesn't load [`async_hooks`](https://nodejs.org/api/async_hooks.html) or any instrumentation by default. It is intended for use both on the server and in the browser. |
231+
| [@opentelemetry/sdk-metrics-base][otel-metrics] | This module provides instruments and meters for reporting of time series data. |
232+
| [@opentelemetry/sdk-trace-node][otel-node] | This module provides automatic tracing for Node.js applications. It is intended for use on the server only. |
233+
| [@opentelemetry/sdk-trace-web][otel-web] | This module provides automated instrumentation and tracing for Web applications. It is intended for use in the browser only. |
235234

236235
### Compatible Exporters
237236

@@ -272,7 +271,7 @@ These instrumentations are hosted at <https://github.com/open-telemetry/opentele
272271
### Shims
273272

274273
| Package | Description |
275-
|----------------------------------------------------------|-----------------------------------------------------------------------------------------|
274+
| -------------------------------------------------------- | --------------------------------------------------------------------------------------- |
276275
| [@opentelemetry/shim-opentracing][otel-shim-opentracing] | OpenTracing shim allows existing OpenTracing instrumentation to report to OpenTelemetry |
277276

278277
## Upgrade guidelines

examples/basic-tracer-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"tracing"
1717
],
1818
"engines": {
19-
"node": ">=8"
19+
"node": ">=14"
2020
},
2121
"author": "OpenTelemetry Authors",
2222
"license": "Apache-2.0",

examples/grpc-js/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tracing"
2121
],
2222
"engines": {
23-
"node": ">=8"
23+
"node": ">=14"
2424
},
2525
"author": "OpenTelemetry Authors",
2626
"license": "Apache-2.0",

examples/grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tracing"
2121
],
2222
"engines": {
23-
"node": ">=8"
23+
"node": ">=14"
2424
},
2525
"author": "OpenTelemetry Authors",
2626
"license": "Apache-2.0",

examples/http/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tracing"
2121
],
2222
"engines": {
23-
"node": ">=8"
23+
"node": ">=14"
2424
},
2525
"author": "OpenTelemetry Authors",
2626
"license": "Apache-2.0",

examples/https/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tracing"
2222
],
2323
"engines": {
24-
"node": ">=8"
24+
"node": ">=14"
2525
},
2626
"author": "OpenTelemetry Authors",
2727
"license": "Apache-2.0",

examples/opentracing-shim/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"opentracing"
2222
],
2323
"engines": {
24-
"node": ">=8"
24+
"node": ">=14"
2525
},
2626
"author": "OpenTelemetry Authors",
2727
"license": "Apache-2.0",

examples/otlp-exporter-node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tracing"
2121
],
2222
"engines": {
23-
"node": ">=8"
23+
"node": ">=14"
2424
},
2525
"author": "OpenTelemetry Authors",
2626
"license": "Apache-2.0",

examples/tracer-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"web"
2121
],
2222
"engines": {
23-
"node": ">=8"
23+
"node": ">=14"
2424
},
2525
"author": "OpenTelemetry Authors",
2626
"license": "Apache-2.0",

experimental/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ All notable changes to experimental packages in this project will be documented
2424

2525
### :house: (Internal)
2626

27+
* test: add node 18 and remove EoL node versions [#3048](https://github.com/open-telemetry/opentelemetry-js/pull/3048) @dyladan
28+
2729
## 0.29.2
2830

2931
* Support for 1.3.1 of stable packages
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "backcompat-node10",
2+
"name": "backcompat-node14",
33
"version": "0.29.2",
44
"private": true,
5-
"description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK",
5+
"description": "Backwards compatability app for node 14 types and the OpenTelemetry Node.js SDK",
66
"main": "index.js",
77
"scripts": {
88
"test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts",
@@ -13,9 +13,12 @@
1313
"@opentelemetry/sdk-trace-base": "1.3.1"
1414
},
1515
"devDependencies": {
16-
"@types/node": "10.17.60",
16+
"@types/node": "^14.0.0",
1717
"typescript": "4.4.4"
1818
},
1919
"author": "OpenTelemetry Authors",
20-
"license": "Apache-2.0"
20+
"license": "Apache-2.0",
21+
"engines": {
22+
"node": ">=14"
23+
}
2124
}
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "backcompat-node12",
2+
"name": "backcompat-node16",
33
"version": "0.29.2",
44
"private": true,
5-
"description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK",
5+
"description": "Backwards compatability app for node 16 types and the OpenTelemetry Node.js SDK",
66
"main": "index.js",
77
"scripts": {
88
"test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts",
@@ -13,9 +13,12 @@
1313
"@opentelemetry/sdk-trace-base": "1.3.1"
1414
},
1515
"devDependencies": {
16-
"@types/node": "12.20.37",
16+
"@types/node": "^16.0.0",
1717
"typescript": "4.4.4"
1818
},
1919
"author": "OpenTelemetry Authors",
20-
"license": "Apache-2.0"
20+
"license": "Apache-2.0",
21+
"engines": {
22+
"node": ">=14"
23+
}
2124
}

experimental/backwards-compatability/node8/index.ts

-10
This file was deleted.

experimental/backwards-compatability/node8/package.json

-21
This file was deleted.

experimental/backwards-compatability/node8/tsconfig.json

-18
This file was deleted.

experimental/packages/exporter-trace-otlp-grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"author": "OpenTelemetry Authors",
3333
"license": "Apache-2.0",
3434
"engines": {
35-
"node": ">=8.12.0"
35+
"node": ">=14"
3636
},
3737
"files": [
3838
"build/src/**/*.js",

experimental/packages/exporter-trace-otlp-http/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"author": "OpenTelemetry Authors",
4444
"license": "Apache-2.0",
4545
"engines": {
46-
"node": ">=8.12.0"
46+
"node": ">=14"
4747
},
4848
"files": [
4949
"build/esm/**/*.js",

experimental/packages/exporter-trace-otlp-proto/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"author": "OpenTelemetry Authors",
3333
"license": "Apache-2.0",
3434
"engines": {
35-
"node": ">=8.12.0"
35+
"node": ">=14"
3636
},
3737
"files": [
3838
"build/src/**/*.js",

experimental/packages/opentelemetry-api-metrics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"author": "OpenTelemetry Authors",
4242
"license": "Apache-2.0",
4343
"engines": {
44-
"node": ">=8.12.0"
44+
"node": ">=14"
4545
},
4646
"files": [
4747
"build/esm/**/*.js",

experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"author": "OpenTelemetry Authors",
3333
"license": "Apache-2.0",
3434
"engines": {
35-
"node": ">=8.12.0"
35+
"node": ">=14"
3636
},
3737
"files": [
3838
"build/src/**/*.js",

experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"author": "OpenTelemetry Authors",
4444
"license": "Apache-2.0",
4545
"engines": {
46-
"node": ">=8.12.0"
46+
"node": ">=14"
4747
},
4848
"files": [
4949
"build/esm/**/*.js",

experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"author": "OpenTelemetry Authors",
3333
"license": "Apache-2.0",
3434
"engines": {
35-
"node": ">=8.12.0"
35+
"node": ">=14"
3636
},
3737
"files": [
3838
"build/src/**/*.js",

experimental/packages/opentelemetry-exporter-prometheus/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"author": "OpenTelemetry Authors",
3030
"license": "Apache-2.0",
3131
"engines": {
32-
"node": ">=8.12.0"
32+
"node": ">=14"
3333
},
3434
"files": [
3535
"build/src/**/*.js",

experimental/packages/opentelemetry-instrumentation-fetch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"author": "OpenTelemetry Authors",
3535
"license": "Apache-2.0",
3636
"engines": {
37-
"node": ">=8.12.0"
37+
"node": ">=14"
3838
},
3939
"files": [
4040
"build/esm/**/*.js",

experimental/packages/opentelemetry-instrumentation-grpc/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"author": "OpenTelemetry Authors",
3232
"license": "Apache-2.0",
3333
"engines": {
34-
"node": ">=8.12.0"
34+
"node": ">=14"
3535
},
3636
"files": [
3737
"build/src/**/*.js",

experimental/packages/opentelemetry-instrumentation-http/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"author": "OpenTelemetry Authors",
3232
"license": "Apache-2.0",
3333
"engines": {
34-
"node": ">=8.12.0"
34+
"node": ">=14"
3535
},
3636
"files": [
3737
"build/src/**/*.js",

experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"author": "OpenTelemetry Authors",
3535
"license": "Apache-2.0",
3636
"engines": {
37-
"node": ">=8.12.0"
37+
"node": ">=14"
3838
},
3939
"files": [
4040
"build/esm/**/*.js",

0 commit comments

Comments
 (0)