diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b847bc2d3e..1ee74306e9 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: node_version: - - "18" + - 18 runs-on: self-hosted timeout-minutes: 10 env: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index eac7627c9b..30beff6f5d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/setup-node@v4 with: - node-version: '16' + node-version: 18 - uses: actions/checkout@v4 diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index ffebc82c29..aba88acef3 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -12,9 +12,8 @@ jobs: fail-fast: false matrix: node_version: - - "14" - - "16" - "18" + # - "20" # disabled until http instrumentation can be fixed runs-on: ubuntu-latest env: NPM_CONFIG_UNSAFE_PERM: true @@ -27,11 +26,6 @@ jobs: node-version: ${{ matrix.node_version }} - run: npm install -g npm@latest - if: ${{ matrix.node_version == '18' || matrix.node_version == '20' }} - - # npm@10.0.0 drops support for Node.js v14 and v16 - - run: npm install -g npm@"<10.0.0" - if: ${{ matrix.node_version == '14' || matrix.node_version == '16' }} - name: Bootstrap run: npm ci @@ -42,13 +36,11 @@ jobs: - name: Unit tests run: | # TODO(legendecas): webpack https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported - if [ "${{ matrix.node_version }}" = "18" ]; then - export NODE_OPTIONS=--openssl-legacy-provider - fi + export NODE_OPTIONS=--openssl-legacy-provider npm run test - name: Report Coverage run: npm run codecov - if: ${{ matrix.node_version == '14' }} + if: ${{ matrix.node_version == '18' }} node-windows-tests: runs-on: windows-latest env: @@ -85,7 +77,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 18 - name: Bootstrap run: npm ci @@ -106,7 +98,7 @@ jobs: uses: actions/checkout@v4.0.0 - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 18 - name: Bootstrap run: npm ci @@ -126,6 +118,8 @@ jobs: - "8" - "10" - "12" + - "14" + - "16" runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.github/workflows/w3c-integration-test.yml b/.github/workflows/w3c-integration-test.yml index 1df205b05d..51614cf87b 100644 --- a/.github/workflows/w3c-integration-test.yml +++ b/.github/workflows/w3c-integration-test.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: '16' + node-version: 18 - name: Install and Bootstrap 🔧 run: npm ci diff --git a/examples/basic-tracer-node/package.json b/examples/basic-tracer-node/package.json index 6219894855..2012f1f3b1 100644 --- a/examples/basic-tracer-node/package.json +++ b/examples/basic-tracer-node/package.json @@ -16,7 +16,7 @@ "tracing" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/esm-http-ts/package.json b/examples/esm-http-ts/package.json index 12897fa6a7..21641b17c2 100644 --- a/examples/esm-http-ts/package.json +++ b/examples/esm-http-ts/package.json @@ -21,7 +21,7 @@ "typescript" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/grpc-js/package.json b/examples/grpc-js/package.json index 99dc941919..6cbd02c014 100644 --- a/examples/grpc-js/package.json +++ b/examples/grpc-js/package.json @@ -20,7 +20,7 @@ "tracing" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/http/package.json b/examples/http/package.json index 06899fd23a..12c1a82982 100644 --- a/examples/http/package.json +++ b/examples/http/package.json @@ -20,7 +20,7 @@ "tracing" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/https/package.json b/examples/https/package.json index cebf2cc00c..ab0ce6de45 100644 --- a/examples/https/package.json +++ b/examples/https/package.json @@ -24,7 +24,7 @@ "tracing" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/opentelemetry-web/package.json b/examples/opentelemetry-web/package.json index 04c723218d..0ce0ea213b 100644 --- a/examples/opentelemetry-web/package.json +++ b/examples/opentelemetry-web/package.json @@ -24,7 +24,7 @@ "web" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/opentracing-shim/package.json b/examples/opentracing-shim/package.json index cf880f2b19..9895029b43 100644 --- a/examples/opentracing-shim/package.json +++ b/examples/opentracing-shim/package.json @@ -21,7 +21,7 @@ "opentracing" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/examples/otlp-exporter-node/package.json b/examples/otlp-exporter-node/package.json index 57a8a72cd0..e7578b8b1e 100644 --- a/examples/otlp-exporter-node/package.json +++ b/examples/otlp-exporter-node/package.json @@ -20,7 +20,7 @@ "tracing" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/experimental/backwards-compatibility/node14/package.json b/experimental/backwards-compatibility/node14/package.json index acf9ca85cd..66ffd91b28 100644 --- a/experimental/backwards-compatibility/node14/package.json +++ b/experimental/backwards-compatibility/node14/package.json @@ -19,6 +19,6 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" } } diff --git a/experimental/backwards-compatibility/node16/package.json b/experimental/backwards-compatibility/node16/package.json index 932dcfacae..fdb37e7ee5 100644 --- a/experimental/backwards-compatibility/node16/package.json +++ b/experimental/backwards-compatibility/node16/package.json @@ -19,6 +19,6 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" } } diff --git a/experimental/examples/opencensus-shim/package.json b/experimental/examples/opencensus-shim/package.json index 79570efc75..f3eb091759 100644 --- a/experimental/examples/opencensus-shim/package.json +++ b/experimental/examples/opencensus-shim/package.json @@ -19,7 +19,7 @@ "opencensus" ], "engines": { - "node": ">=14" + "node": ">=18" }, "author": "OpenTelemetry Authors", "license": "Apache-2.0", diff --git a/experimental/packages/api-events/package.json b/experimental/packages/api-events/package.json index b21e6d7b6d..316ddfbf26 100644 --- a/experimental/packages/api-events/package.json +++ b/experimental/packages/api-events/package.json @@ -41,7 +41,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/api-logs/package.json b/experimental/packages/api-logs/package.json index 799d52b77c..311dba6950 100644 --- a/experimental/packages/api-logs/package.json +++ b/experimental/packages/api-logs/package.json @@ -41,7 +41,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/exporter-logs-otlp-grpc/package.json b/experimental/packages/exporter-logs-otlp-grpc/package.json index b2fc1b3ea0..b1fd3203f5 100644 --- a/experimental/packages/exporter-logs-otlp-grpc/package.json +++ b/experimental/packages/exporter-logs-otlp-grpc/package.json @@ -33,7 +33,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/exporter-logs-otlp-http/package.json b/experimental/packages/exporter-logs-otlp-http/package.json index 911280bbd2..f4483e3940 100644 --- a/experimental/packages/exporter-logs-otlp-http/package.json +++ b/experimental/packages/exporter-logs-otlp-http/package.json @@ -26,7 +26,7 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "engines": { - "node": ">=14" + "node": ">=18" }, "scripts": { "prepublishOnly": "npm run compile", diff --git a/experimental/packages/exporter-logs-otlp-proto/package.json b/experimental/packages/exporter-logs-otlp-proto/package.json index baf877bda8..b0f06f6c24 100644 --- a/experimental/packages/exporter-logs-otlp-proto/package.json +++ b/experimental/packages/exporter-logs-otlp-proto/package.json @@ -42,7 +42,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/exporter-trace-otlp-grpc/package.json b/experimental/packages/exporter-trace-otlp-grpc/package.json index 9069ae1978..a14a3592a4 100644 --- a/experimental/packages/exporter-trace-otlp-grpc/package.json +++ b/experimental/packages/exporter-trace-otlp-grpc/package.json @@ -32,7 +32,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/exporter-trace-otlp-http/package.json b/experimental/packages/exporter-trace-otlp-http/package.json index e4ff37ff9d..fb1959eefb 100644 --- a/experimental/packages/exporter-trace-otlp-http/package.json +++ b/experimental/packages/exporter-trace-otlp-http/package.json @@ -43,7 +43,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/exporter-trace-otlp-proto/package.json b/experimental/packages/exporter-trace-otlp-proto/package.json index 46993c28a3..868fb370fc 100644 --- a/experimental/packages/exporter-trace-otlp-proto/package.json +++ b/experimental/packages/exporter-trace-otlp-proto/package.json @@ -41,7 +41,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/opentelemetry-browser-detector/package.json b/experimental/packages/opentelemetry-browser-detector/package.json index 7669071dd1..e72006abe9 100644 --- a/experimental/packages/opentelemetry-browser-detector/package.json +++ b/experimental/packages/opentelemetry-browser-detector/package.json @@ -33,7 +33,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json index 0b6e8584d3..bae4147fc4 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/package.json @@ -32,7 +32,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json index 8e8e5eb75d..7554c13a1e 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-http/package.json @@ -43,7 +43,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json index 76070c1954..289079ac1b 100644 --- a/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json +++ b/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/opentelemetry-exporter-prometheus/package.json b/experimental/packages/opentelemetry-exporter-prometheus/package.json index d8a3001e2e..be3d8c2bbb 100644 --- a/experimental/packages/opentelemetry-exporter-prometheus/package.json +++ b/experimental/packages/opentelemetry-exporter-prometheus/package.json @@ -29,7 +29,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts b/experimental/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts index b4c6f0ade0..1030203a2c 100644 --- a/experimental/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts +++ b/experimental/packages/opentelemetry-exporter-prometheus/test/PrometheusExporter.test.ts @@ -360,8 +360,8 @@ describe('PrometheusExporter', () => { .get('http://localhost:9464/metrics', res => { errorHandler(done)(new Error('unreachable')); }) - .on('error', err => { - assert(`${err}`.match('ECONNREFUSED')); + .on('error', (err: any) => { + assert.equal(err.code, 'ECONNREFUSED'); done(); }); }); diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/package.json b/experimental/packages/opentelemetry-instrumentation-fetch/package.json index 036c518cb1..dc44135e7a 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/package.json +++ b/experimental/packages/opentelemetry-instrumentation-fetch/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/opentelemetry-instrumentation-grpc/package.json b/experimental/packages/opentelemetry-instrumentation-grpc/package.json index 0174982b92..c6315944f7 100644 --- a/experimental/packages/opentelemetry-instrumentation-grpc/package.json +++ b/experimental/packages/opentelemetry-instrumentation-grpc/package.json @@ -32,7 +32,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/opentelemetry-instrumentation-http/package.json b/experimental/packages/opentelemetry-instrumentation-http/package.json index 336efd74c8..cfdd22803b 100644 --- a/experimental/packages/opentelemetry-instrumentation-http/package.json +++ b/experimental/packages/opentelemetry-instrumentation-http/package.json @@ -31,7 +31,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json index ca525f8ac4..4a95040d79 100644 --- a/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json +++ b/experimental/packages/opentelemetry-instrumentation-xml-http-request/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/opentelemetry-instrumentation/package.json b/experimental/packages/opentelemetry-instrumentation/package.json index da40052d0b..9cdd10d017 100644 --- a/experimental/packages/opentelemetry-instrumentation/package.json +++ b/experimental/packages/opentelemetry-instrumentation/package.json @@ -112,7 +112,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "sideEffects": false } diff --git a/experimental/packages/opentelemetry-instrumentation/src/index.ts b/experimental/packages/opentelemetry-instrumentation/src/index.ts index 8420c6968e..0185bfc79d 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/index.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/index.ts @@ -15,7 +15,9 @@ */ export * from './autoLoader'; -export * from './platform/index'; +export { InstrumentationBase } from './platform/index'; +export { InstrumentationNodeModuleDefinition } from './instrumentationNodeModuleDefinition'; +export { InstrumentationNodeModuleFile } from './instrumentationNodeModuleFile'; export * from './types'; export * from './types_internal'; export * from './utils'; diff --git a/experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts b/experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts index 4b729fd439..4552f6dfab 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/instrumentation.ts @@ -25,16 +25,19 @@ import { TracerProvider, } from '@opentelemetry/api'; import * as shimmer from 'shimmer'; -import { InstrumentationModuleDefinition } from './platform/node'; -import * as types from './types'; +import { + InstrumentationModuleDefinition, + Instrumentation, + InstrumentationConfig, +} from './types'; /** * Base abstract internal class for instrumenting node and web plugins */ export abstract class InstrumentationAbstract - implements types.Instrumentation + implements Instrumentation { - protected _config: types.InstrumentationConfig; + protected _config: InstrumentationConfig; private _tracer: Tracer; private _meter: Meter; @@ -43,7 +46,7 @@ export abstract class InstrumentationAbstract constructor( public readonly instrumentationName: string, public readonly instrumentationVersion: string, - config: types.InstrumentationConfig = {} + config: InstrumentationConfig = {} ) { this._config = { enabled: true, @@ -95,7 +98,7 @@ export abstract class InstrumentationAbstract } /* Returns InstrumentationConfig */ - public getConfig(): types.InstrumentationConfig { + public getConfig(): InstrumentationConfig { return this._config; } @@ -103,7 +106,7 @@ export abstract class InstrumentationAbstract * Sets InstrumentationConfig to this plugin * @param InstrumentationConfig */ - public setConfig(config: types.InstrumentationConfig = {}): void { + public setConfig(config: InstrumentationConfig = {}): void { this._config = Object.assign({}, config); } diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts b/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts similarity index 100% rename from experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleDefinition.ts rename to experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleDefinition.ts diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts b/experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleFile.ts similarity index 100% rename from experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentationNodeModuleFile.ts rename to experimental/packages/opentelemetry-instrumentation/src/instrumentationNodeModuleFile.ts diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/browser/index.ts b/experimental/packages/opentelemetry-instrumentation/src/platform/browser/index.ts index 24c76056a1..0b238b42b8 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/platform/browser/index.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/platform/browser/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './instrumentation'; +export { InstrumentationBase } from './instrumentation'; diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/index.ts b/experimental/packages/opentelemetry-instrumentation/src/platform/index.ts index cdaf8858ce..81d3096252 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/platform/index.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/platform/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export * from './node'; +export { InstrumentationBase } from './node'; diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/node/index.ts b/experimental/packages/opentelemetry-instrumentation/src/platform/node/index.ts index 842797c341..1e81931b2a 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/platform/node/index.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/platform/node/index.ts @@ -13,7 +13,4 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from './instrumentation'; -export * from './instrumentationNodeModuleDefinition'; -export * from './instrumentationNodeModuleFile'; -export * from './types'; +export { InstrumentationBase } from './instrumentation'; diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts b/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts index 03d8f6ba37..a4c11498c9 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/platform/node/instrumentation.ts @@ -26,7 +26,7 @@ import { } from './RequireInTheMiddleSingleton'; import type { HookFn } from 'import-in-the-middle'; import * as ImportInTheMiddle from 'import-in-the-middle'; -import { InstrumentationModuleDefinition } from './types'; +import { InstrumentationModuleDefinition } from '../../types'; import { diag } from '@opentelemetry/api'; import type { OnRequireFn } from 'require-in-the-middle'; import { Hook } from 'require-in-the-middle'; diff --git a/experimental/packages/opentelemetry-instrumentation/src/platform/node/types.ts b/experimental/packages/opentelemetry-instrumentation/src/platform/node/types.ts deleted file mode 100644 index 5cdfbc84c0..0000000000 --- a/experimental/packages/opentelemetry-instrumentation/src/platform/node/types.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export interface InstrumentationModuleFile { - /** Name of file to be patched with relative path */ - name: string; - - moduleExports?: T; - - /** Supported version this file */ - supportedVersions: string[]; - - /** Method to patch the instrumentation */ - patch(moduleExports: T, moduleVersion?: string): T; - - /** Method to patch the instrumentation */ - - /** Method to unpatch the instrumentation */ - unpatch(moduleExports?: T, moduleVersion?: string): void; -} - -export interface InstrumentationModuleDefinition { - /** Module name or path */ - name: string; - - moduleExports?: T; - - /** Instrumented module version */ - moduleVersion?: string; - - /** Supported version of module */ - supportedVersions: string[]; - - /** Module internal files to be patched */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any - files: InstrumentationModuleFile[]; - - /** If set to true, the includePrerelease check will be included when calling semver.satisfies */ - includePrerelease?: boolean; - - /** Method to patch the instrumentation */ - patch?: (moduleExports: T, moduleVersion?: string) => T; - - /** Method to unpatch the instrumentation */ - unpatch?: (moduleExports: T, moduleVersion?: string) => void; -} diff --git a/experimental/packages/opentelemetry-instrumentation/src/types.ts b/experimental/packages/opentelemetry-instrumentation/src/types.ts index 837f096792..760e31165f 100644 --- a/experimental/packages/opentelemetry-instrumentation/src/types.ts +++ b/experimental/packages/opentelemetry-instrumentation/src/types.ts @@ -77,3 +77,47 @@ export interface ShimWrapped extends Function { // eslint-disable-next-line @typescript-eslint/ban-types __original: Function; } + +export interface InstrumentationModuleFile { + /** Name of file to be patched with relative path */ + name: string; + + moduleExports?: T; + + /** Supported version this file */ + supportedVersions: string[]; + + /** Method to patch the instrumentation */ + patch(moduleExports: T, moduleVersion?: string): T; + + /** Method to patch the instrumentation */ + + /** Method to unpatch the instrumentation */ + unpatch(moduleExports?: T, moduleVersion?: string): void; +} + +export interface InstrumentationModuleDefinition { + /** Module name or path */ + name: string; + + moduleExports?: T; + + /** Instrumented module version */ + moduleVersion?: string; + + /** Supported version of module */ + supportedVersions: string[]; + + /** Module internal files to be patched */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any + files: InstrumentationModuleFile[]; + + /** If set to true, the includePrerelease check will be included when calling semver.satisfies */ + includePrerelease?: boolean; + + /** Method to patch the instrumentation */ + patch?: (moduleExports: T, moduleVersion?: string) => T; + + /** Method to unpatch the instrumentation */ + unpatch?: (moduleExports: T, moduleVersion?: string) => void; +} diff --git a/experimental/packages/opentelemetry-instrumentation/test/node/InstrumentationBase.test.ts b/experimental/packages/opentelemetry-instrumentation/test/node/InstrumentationBase.test.ts index b9597c65d8..74d856da00 100644 --- a/experimental/packages/opentelemetry-instrumentation/test/node/InstrumentationBase.test.ts +++ b/experimental/packages/opentelemetry-instrumentation/test/node/InstrumentationBase.test.ts @@ -17,12 +17,12 @@ import * as assert from 'assert'; import * as sinon from 'sinon'; import * as path from 'path'; +import { InstrumentationBase } from '../../src'; import { - InstrumentationBase, - InstrumentationModuleDefinition, InstrumentationNodeModuleDefinition, + InstrumentationModuleDefinition, InstrumentationNodeModuleFile, -} from '../../src'; +} from '../../src/'; const MODULE_NAME = 'test-module'; const MODULE_FILE_NAME = 'test-module-file'; diff --git a/experimental/packages/opentelemetry-sdk-node/package.json b/experimental/packages/opentelemetry-sdk-node/package.json index 6e2a05ac1d..2cc33e2c8c 100644 --- a/experimental/packages/opentelemetry-sdk-node/package.json +++ b/experimental/packages/opentelemetry-sdk-node/package.json @@ -31,7 +31,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/otlp-exporter-base/package.json b/experimental/packages/otlp-exporter-base/package.json index dad9675933..f57c6d9a3a 100644 --- a/experimental/packages/otlp-exporter-base/package.json +++ b/experimental/packages/otlp-exporter-base/package.json @@ -42,7 +42,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/otlp-grpc-exporter-base/package.json b/experimental/packages/otlp-grpc-exporter-base/package.json index bcd5c446bb..69e641ca85 100644 --- a/experimental/packages/otlp-grpc-exporter-base/package.json +++ b/experimental/packages/otlp-grpc-exporter-base/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/experimental/packages/otlp-proto-exporter-base/package.json b/experimental/packages/otlp-proto-exporter-base/package.json index b521d4e64e..4dc245815b 100644 --- a/experimental/packages/otlp-proto-exporter-base/package.json +++ b/experimental/packages/otlp-proto-exporter-base/package.json @@ -39,7 +39,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/otlp-transformer/package.json b/experimental/packages/otlp-transformer/package.json index 4638722c92..551b3bf83d 100644 --- a/experimental/packages/otlp-transformer/package.json +++ b/experimental/packages/otlp-transformer/package.json @@ -39,7 +39,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/experimental/packages/sdk-logs/package.json b/experimental/packages/sdk-logs/package.json index 4ab92b4d39..369627ed71 100644 --- a/experimental/packages/sdk-logs/package.json +++ b/experimental/packages/sdk-logs/package.json @@ -26,7 +26,7 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "engines": { - "node": ">=14" + "node": ">=18" }, "scripts": { "prepublishOnly": "npm run compile", diff --git a/experimental/packages/shim-opencensus/package.json b/experimental/packages/shim-opencensus/package.json index 88bca837f1..d1aa11dbae 100644 --- a/experimental/packages/shim-opencensus/package.json +++ b/experimental/packages/shim-opencensus/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/integration-tests/propagation-validation-server/package.json b/integration-tests/propagation-validation-server/package.json index d3c8aa0de4..0d9b204796 100644 --- a/integration-tests/propagation-validation-server/package.json +++ b/integration-tests/propagation-validation-server/package.json @@ -23,6 +23,6 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" } } diff --git a/package-lock.json b/package-lock.json index 9dce318086..ae8fdac863 100644 --- a/package-lock.json +++ b/package-lock.json @@ -171,7 +171,7 @@ "@opentelemetry/semantic-conventions": "1.18.1" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "examples/http": { @@ -193,7 +193,7 @@ "cross-env": "^6.0.0" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "examples/https": { @@ -215,7 +215,7 @@ "cross-env": "^6.0.0" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "examples/opentelemetry-web": { @@ -250,7 +250,7 @@ "webpack-merge": "^5.8.0" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "examples/opentelemetry-web/node_modules/@webassemblyjs/ast": { @@ -560,7 +560,7 @@ "@opentelemetry/semantic-conventions": "1.18.1" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "experimental/backwards-compatibility/node14": { @@ -576,7 +576,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "experimental/backwards-compatibility/node14/node_modules/@types/node": { @@ -597,7 +597,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "experimental/backwards-compatibility/node16/node_modules/@types/node": { @@ -704,7 +704,7 @@ "@opentelemetry/shim-opencensus": "0.45.1" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "experimental/examples/prometheus": { @@ -746,7 +746,7 @@ "webpack": "4.46.0" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "experimental/packages/api-events/node_modules/terser-webpack-plugin": { @@ -848,7 +848,7 @@ "webpack": "4.46.0" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "experimental/packages/api-logs/node_modules/terser-webpack-plugin": { @@ -954,7 +954,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1002,7 +1002,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1132,7 +1132,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1252,7 +1252,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1299,7 +1299,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1427,7 +1427,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1550,7 +1550,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -1670,7 +1670,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -1717,7 +1717,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -1836,7 +1836,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -1867,7 +1867,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -1916,7 +1916,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -1964,7 +1964,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -2087,7 +2087,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -2130,7 +2130,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" @@ -2188,7 +2188,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -2397,7 +2397,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.8.0" @@ -2437,7 +2437,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -2557,7 +2557,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -2590,7 +2590,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -2630,7 +2630,7 @@ "webpack": "4.46.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.8.0" @@ -2742,7 +2742,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.8.0", @@ -2860,7 +2860,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opencensus/core": "^0.1.0", @@ -2883,7 +2883,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "integration-tests/propagation-validation-server/node_modules/axios": { @@ -30547,7 +30547,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -30587,7 +30587,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "packages/opentelemetry-context-zone-peer-dep": { @@ -30624,7 +30624,7 @@ "zone.js": "0.11.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0", @@ -30823,7 +30823,7 @@ "webpack": "4.46.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -30926,7 +30926,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -30972,7 +30972,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" @@ -31081,7 +31081,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31119,7 +31119,7 @@ "webpack": "4.46.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31231,7 +31231,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31392,7 +31392,7 @@ "webpack": "4.46.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31498,7 +31498,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31548,7 +31548,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31655,7 +31655,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "packages/opentelemetry-shim-opentracing": { @@ -31683,7 +31683,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.8.0" @@ -31726,7 +31726,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.8.0" @@ -31825,7 +31825,7 @@ "typescript": "4.4.4" }, "engines": { - "node": ">=14" + "node": ">=18" } }, "selenium-tests": { @@ -31868,7 +31868,7 @@ "webpack-merge": "5.9.0" }, "engines": { - "node": ">=14" + "node": ">=18" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0" diff --git a/packages/opentelemetry-context-async-hooks/package.json b/packages/opentelemetry-context-async-hooks/package.json index 4a1205169e..7285c00d33 100644 --- a/packages/opentelemetry-context-async-hooks/package.json +++ b/packages/opentelemetry-context-async-hooks/package.json @@ -30,7 +30,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/packages/opentelemetry-context-zone-peer-dep/package.json b/packages/opentelemetry-context-zone-peer-dep/package.json index bd1b3a4e63..b4289dea40 100644 --- a/packages/opentelemetry-context-zone-peer-dep/package.json +++ b/packages/opentelemetry-context-zone-peer-dep/package.json @@ -33,7 +33,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-context-zone/package.json b/packages/opentelemetry-context-zone/package.json index 610d2a5be9..5e9a477e36 100644 --- a/packages/opentelemetry-context-zone/package.json +++ b/packages/opentelemetry-context-zone/package.json @@ -30,7 +30,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-core/package.json b/packages/opentelemetry-core/package.json index 5e259cdbb5..30ff22af16 100644 --- a/packages/opentelemetry-core/package.json +++ b/packages/opentelemetry-core/package.json @@ -44,7 +44,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-exporter-jaeger/package.json b/packages/opentelemetry-exporter-jaeger/package.json index 1b65a8ecba..9af1a8e519 100644 --- a/packages/opentelemetry-exporter-jaeger/package.json +++ b/packages/opentelemetry-exporter-jaeger/package.json @@ -30,7 +30,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/packages/opentelemetry-exporter-zipkin/package.json b/packages/opentelemetry-exporter-zipkin/package.json index b63bb29a6b..13624898b8 100644 --- a/packages/opentelemetry-exporter-zipkin/package.json +++ b/packages/opentelemetry-exporter-zipkin/package.json @@ -40,7 +40,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-propagator-b3/package.json b/packages/opentelemetry-propagator-b3/package.json index 0722a37187..8addf077d1 100644 --- a/packages/opentelemetry-propagator-b3/package.json +++ b/packages/opentelemetry-propagator-b3/package.json @@ -32,7 +32,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-propagator-jaeger/package.json b/packages/opentelemetry-propagator-jaeger/package.json index 57bfcd19d2..f11eb4b084 100644 --- a/packages/opentelemetry-propagator-jaeger/package.json +++ b/packages/opentelemetry-propagator-jaeger/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-resources/package.json b/packages/opentelemetry-resources/package.json index 05787db5ae..d6799b594a 100644 --- a/packages/opentelemetry-resources/package.json +++ b/packages/opentelemetry-resources/package.json @@ -41,7 +41,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-sdk-trace-base/package.json b/packages/opentelemetry-sdk-trace-base/package.json index 9cc25ed801..87787d0807 100644 --- a/packages/opentelemetry-sdk-trace-base/package.json +++ b/packages/opentelemetry-sdk-trace-base/package.json @@ -45,7 +45,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-sdk-trace-node/package.json b/packages/opentelemetry-sdk-trace-node/package.json index e67b705121..7a94b193fe 100644 --- a/packages/opentelemetry-sdk-trace-node/package.json +++ b/packages/opentelemetry-sdk-trace-node/package.json @@ -31,7 +31,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/packages/opentelemetry-sdk-trace-web/package.json b/packages/opentelemetry-sdk-trace-web/package.json index 69154f8e56..ba9d648fc7 100644 --- a/packages/opentelemetry-sdk-trace-web/package.json +++ b/packages/opentelemetry-sdk-trace-web/package.json @@ -35,7 +35,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-semantic-conventions/package.json b/packages/opentelemetry-semantic-conventions/package.json index 2317ad6358..343b37de51 100644 --- a/packages/opentelemetry-semantic-conventions/package.json +++ b/packages/opentelemetry-semantic-conventions/package.json @@ -29,7 +29,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/opentelemetry-shim-opentracing/package.json b/packages/opentelemetry-shim-opentracing/package.json index c02d427e15..8ef699dfb0 100644 --- a/packages/opentelemetry-shim-opentracing/package.json +++ b/packages/opentelemetry-shim-opentracing/package.json @@ -28,7 +28,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/src/**/*.js", diff --git a/packages/sdk-metrics/package.json b/packages/sdk-metrics/package.json index e84fa8a828..914abab5ce 100644 --- a/packages/sdk-metrics/package.json +++ b/packages/sdk-metrics/package.json @@ -34,7 +34,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "files": [ "build/esm/**/*.js", diff --git a/packages/template/package.json b/packages/template/package.json index 111dff0c20..a2746412c7 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -23,7 +23,7 @@ "url": "https://github.com/open-telemetry/opentelemetry-js/issues" }, "engines": { - "node": ">=14" + "node": ">=18" }, "scripts": { "prepublishOnly": "npm run compile", diff --git a/selenium-tests/package.json b/selenium-tests/package.json index d9733ce46a..60b78cb133 100644 --- a/selenium-tests/package.json +++ b/selenium-tests/package.json @@ -25,7 +25,7 @@ "author": "OpenTelemetry Authors", "license": "Apache-2.0", "engines": { - "node": ">=14" + "node": ">=18" }, "publishConfig": { "access": "restricted"