diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 537010ec85..874aed7822 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,31 +28,17 @@ jobs: with: args: "./**/*.md -i ./CHANGELOG.md" - - name: restore lock files - uses: actions/cache@master # must use unreleased master to cache multiple paths + - name: restore lerna id: cache + uses: actions/cache@v2 with: - # must be done before bootstrap to not include node_modules files in the cache paths path: | - package-lock.json - packages/*/package-lock.json - benchmark/*/package-lock.json - backwards-compatability/*/package-lock.json - metapackages/*/package-lock.json - packages/*/package-lock.json - integration-tests/*/package-lock.json - # increment the trailing number to break the cache manually - key: ${{ runner.os }}-lint-${{ hashFiles('**/package.json') }}-0 + node_modules + */*/node_modules + key: lint-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }} - # On a cache hit, use ci to speed up the install process - - name: Bootstrap (cache hit) - if: steps.cache.outputs.cache-hit == 'true' - run: | - npm ci --ignore-scripts - npx lerna bootstrap --ignore-scripts --hoist --nohoist='zone.js' - - # On a cache miss, fall back to a regular install - - name: Bootstrap (cache miss) + # On a cache miss, install dependencies + - name: Bootstrap if: steps.cache.outputs.cache-hit != 'true' run: | npm install --ignore-scripts diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000000..951fab5f79 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,14 @@ +on: + push: + branches: + - main +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + with: + command: manifest + token: ${{secrets.RELEASE_PR_TOKEN}} + default-branch: main \ No newline at end of file diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 51ed1b5e14..bea64d0cdc 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -22,33 +22,23 @@ jobs: with: node-version: ${{ matrix.node_version }} - - name: restore lock files - uses: actions/cache@master # must use unreleased master to cache multiple paths + - name: restore lerna id: cache + uses: actions/cache@v2 with: - # must be done before bootstrap to not include node_modules files in the cache paths path: | - package-lock.json - packages/*/package-lock.json - benchmark/*/package-lock.json - backwards-compatability/*/package-lock.json - metapackages/*/package-lock.json - packages/*/package-lock.json - integration-tests/*/package-lock.json - key: ${{ runner.os }}-unit_test-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }} - - name: Install and Build (cache miss) 🔧 + node_modules + */*/node_modules + key: unittest-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }} + + - name: Bootstrap if: steps.cache.outputs.cache-hit != 'true' run: | npm install --ignore-scripts npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' - npm run compile - - name: Install and Build (cache hit) 🔧 - if: steps.cache.outputs.cache-hit == 'true' - run: | - npm ci --ignore-scripts - npx lerna bootstrap --hoist --nohoist='zone.js' - npm run compile + - name: Build 🔧 + run: npm run compile - name: Unit tests run: npm run test @@ -66,35 +56,24 @@ jobs: uses: actions/checkout@v1 - name: Permission Setup run: sudo chmod -R 777 /github /__w - - name: restore lock files - uses: actions/cache@master # must use unreleased master to cache multiple paths + + - name: restore lerna + uses: actions/cache@v2 id: cache with: - # must be done before bootstrap to not include node_modules files in the cache paths path: | - package-lock.json - packages/*/package-lock.json - benchmark/*/package-lock.json - backwards-compatability/*/package-lock.json - metapackages/*/package-lock.json - packages/*/package-lock.json - integration-tests/*/package-lock.json - key: ${{ runner.os }}-unit_test-${{ matrix.container }}-${{ hashFiles('**/package.json') }} + node_modules + */*/node_modules + key: unittest-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }} - - name: Install and Build (cache miss) 🔧 + - name: Bootstrap if: steps.cache.outputs.cache-hit != 'true' run: | npm install --ignore-scripts npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' - npm run compile - - - name: Install and Build (cache hit) 🔧 - if: steps.cache.outputs.cache-hit == 'true' - run: | - npm ci --ignore-scripts - npx lerna bootstrap --hoist --nohoist='zone.js' - npm run compile + - name: Build 🔧 + run: npm run compile - name: Unit tests run: npm run test:browser - name: Report Coverage diff --git a/.github/workflows/w3c-integration-test.yml b/.github/workflows/w3c-integration-test.yml index 38afe21624..4b51435613 100644 --- a/.github/workflows/w3c-integration-test.yml +++ b/.github/workflows/w3c-integration-test.yml @@ -28,18 +28,21 @@ jobs: integration-tests/*/package-lock.json key: ${{ runner.os }}-w3c_integration-${{ hashFiles('**/package.json') }} - - name: Install and Build (cache miss) 🔧 + - name: Install and Bootstrap (cache miss) 🔧 if: steps.cache.outputs.cache-hit != 'true' run: | npm install --ignore-scripts npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies - - name: Install and Build (cache hit) 🔧 + - name: Install and Bootstrap (cache hit) 🔧 if: steps.cache.outputs.cache-hit == 'true' run: | npm ci --ignore-scripts npx lerna bootstrap --scope=propagation-validation-server --include-dependencies + - name: Generate version.ts files + run: lerna run version + - name: Build 🔧 run: npm run compile working-directory: ./integration-tests/propagation-validation-server diff --git a/.gitignore b/.gitignore index da741df8b9..65c8373b08 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# version.ts file is automatically generated at compile time + +version.ts + # Logs logs *.log diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000000..09f8d59adc --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,28 @@ +{ + "packages/opentelemetry-api-metrics": "0.25.0", + "packages/opentelemetry-context-async-hooks": "0.25.0", + "packages/opentelemetry-context-zone-peer-dep": "0.25.0", + "packages/opentelemetry-context-zone": "0.25.0", + "packages/opentelemetry-core": "0.25.0", + "packages/opentelemetry-exporter-collector-grpc": "0.25.0", + "packages/opentelemetry-exporter-collector-proto": "0.25.0", + "packages/opentelemetry-exporter-collector": "0.25.0", + "packages/opentelemetry-exporter-jaeger": "0.25.0", + "packages/opentelemetry-exporter-prometheus": "0.25.0", + "packages/opentelemetry-exporter-zipkin": "0.25.0", + "packages/opentelemetry-instrumentation-fetch": "0.25.0", + "packages/opentelemetry-instrumentation-grpc": "0.25.0", + "packages/opentelemetry-instrumentation-http": "0.25.0", + "packages/opentelemetry-instrumentation-xml-http-request": "0.25.0", + "packages/opentelemetry-instrumentation": "0.25.0", + "packages/opentelemetry-propagator-b3": "0.25.0", + "packages/opentelemetry-propagator-jaeger": "0.25.0", + "packages/opentelemetry-resources": "0.25.0", + "packages/opentelemetry-sdk-metrics-base": "0.25.0", + "packages/opentelemetry-sdk-node": "0.25.0", + "packages/opentelemetry-sdk-trace-base": "0.25.0", + "packages/opentelemetry-sdk-trace-node": "0.25.0", + "packages/opentelemetry-sdk-trace-web": "0.25.0", + "packages/opentelemetry-semantic-conventions": "0.25.0", + "packages/opentelemetry-shim-opentracing": "0.25.0" +} diff --git a/README.md b/README.md index 2135c9b784..8a3c1d52d8 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,9 @@ To request automatic tracing support for a module not on this list, please [file - @opentelemetry/web -> @opentelemetry/sdk-trace-web - @opentelemetry/metrics -> @opentelemetry/sdk-metrics-base - @opentelemetry/node-sdk -> @opentelemetry/sdk-node +- W3C propagators in @opentelemetry/core were renamed + - `HttpTraceContextPropagator` -> `W3CTraceContextPropagator` + - `W3CBaggagePropagator` -> `W3CBaggagePropagator` ### 0.23.x to 0.24.x diff --git a/benchmark/propagator.js b/benchmark/propagator.js index 51a8058e1f..b201af0198 100644 --- a/benchmark/propagator.js +++ b/benchmark/propagator.js @@ -17,8 +17,8 @@ const setups = [ } }, { - name: 'HttpTraceContextPropagator', - propagator: new opentelemetry.HttpTraceContextPropagator(), + name: 'W3CTraceContextPropagator', + propagator: new opentelemetry.W3CTraceContextPropagator(), injectCarrier: {}, extractCarrier: { traceparent: '00-d4cda95b652f4a1592b449d5929fda1b-6e0c63257de34c92-00' diff --git a/examples/README.md b/examples/README.md index d6477ad1a3..e92bef80ac 100644 --- a/examples/README.md +++ b/examples/README.md @@ -16,10 +16,11 @@ use the latest and greatest features, and best practices. |[http](http/) | HTTP Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | |[https](https/) | HTTPS Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | |[grpc](grpc/) | gRPC Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | -|[express](express/) | Express Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate | |[collector-exporter-node](collector-exporter-node/) | This example shows how to use `@opentelemetry/exporter-collector` to instrument a simple Node.js application | Intermediate | |[opentracing-shim](opentracing-shim/) | This is a simple example that demonstrates how existing OpenTracing instrumentation can be integrated with OpenTelemetry | Intermediate | +Additional examples can be found at [@opentelemetry/opentelemetry-js-contrib][opentelemetry-js-contrib-examples] + ## Contributing Please see [CONTRIBUTING.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CONTRIBUTING.md) for instructions on how to contribute. @@ -27,3 +28,5 @@ Please see [CONTRIBUTING.md](https://github.com/open-telemetry/opentelemetry-js/ ## LICENSE Apache License 2.0 + +[opentelemetry-js-contrib-examples]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/examples diff --git a/integration-tests/propagation-validation-server/validation-server.js b/integration-tests/propagation-validation-server/validation-server.js index 1a1f8fab15..40c1f4ff3f 100644 --- a/integration-tests/propagation-validation-server/validation-server.js +++ b/integration-tests/propagation-validation-server/validation-server.js @@ -1,5 +1,5 @@ const axios = require("axios"); -const { HttpTraceContextPropagator } = require("@opentelemetry/core"); +const { W3CTraceContextPropagator } = require("@opentelemetry/core"); const { BasicTracerProvider } = require("@opentelemetry/sdk-trace-base"); const { context, propagation, trace, ROOT_CONTEXT } = require("@opentelemetry/api"); const { @@ -8,7 +8,7 @@ const { const bodyParser = require("body-parser"); // set global propagator -propagation.setGlobalPropagator(new HttpTraceContextPropagator()); +propagation.setGlobalPropagator(new W3CTraceContextPropagator()); // set global context manager context.setGlobalContextManager(new AsyncHooksContextManager()); diff --git a/lerna.json b/lerna.json index 6b65c7eabf..3eff7bbcea 100644 --- a/lerna.json +++ b/lerna.json @@ -8,7 +8,7 @@ "packages/*", "integration-tests/*" ], - "version": "0.25.0", + "version": "independent", "changelog": { "repo": "open-telemetry/opentelemetry-js", "labels": { diff --git a/package.json b/package.json index 1feadeb7ed..3fbd495d42 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { "name": "opentelemetry", - "version": "0.25.0", + "version": "0.1.0", "description": "OpenTelemetry is a distributed tracing and stats collection framework.", "main": "build/src/index.js", "types": "build/src/index.d.ts", "scripts": { + "precompile": "lerna run version", "compile": "tsc --build tsconfig.json tsconfig.esm.json", + "prewatch": "npm run precompile", "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "bench": "node benchmark", diff --git a/packages/opentelemetry-api-metrics/package.json b/packages/opentelemetry-api-metrics/package.json index 7e3b4875c6..1a9f36ee75 100644 --- a/packages/opentelemetry-api-metrics/package.json +++ b/packages/opentelemetry-api-metrics/package.json @@ -22,7 +22,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-api-metrics/src/version.ts b/packages/opentelemetry-api-metrics/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-api-metrics/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-context-async-hooks/package.json b/packages/opentelemetry-context-async-hooks/package.json index 0a57bcfb9a..f276c6dd19 100644 --- a/packages/opentelemetry-context-async-hooks/package.json +++ b/packages/opentelemetry-context-async-hooks/package.json @@ -13,7 +13,9 @@ "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "version": "node ../../scripts/version-update.js" + "version": "node ../../scripts/version-update.js", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-async-hooks/src/version.ts b/packages/opentelemetry-context-async-hooks/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-context-async-hooks/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-context-zone-peer-dep/package.json b/packages/opentelemetry-context-zone-peer-dep/package.json index 14e460f732..49b8f5be45 100644 --- a/packages/opentelemetry-context-zone-peer-dep/package.json +++ b/packages/opentelemetry-context-zone-peer-dep/package.json @@ -15,7 +15,9 @@ "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-zone-peer-dep/src/version.ts b/packages/opentelemetry-context-zone-peer-dep/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-context-zone-peer-dep/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-context-zone/package.json b/packages/opentelemetry-context-zone/package.json index a9da422132..d1521bc420 100644 --- a/packages/opentelemetry-context-zone/package.json +++ b/packages/opentelemetry-context-zone/package.json @@ -12,7 +12,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-context-zone/src/version.ts b/packages/opentelemetry-context-zone/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-context-zone/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-core/README.md b/packages/opentelemetry-core/README.md index 35e96e3e59..e1c7973326 100644 --- a/packages/opentelemetry-core/README.md +++ b/packages/opentelemetry-core/README.md @@ -12,7 +12,7 @@ This package provides default implementations of the OpenTelemetry API for trace - [OpenTelemetry Core](#opentelemetry-core) - [Built-in Implementations](#built-in-implementations) - [Built-in Propagators](#built-in-propagators) - - [HttpTraceContextPropagator Propagator](#httptracecontext-propagator) + - [W3CTraceContextPropagator Propagator](#httptracecontext-propagator) - [Composite Propagator](#composite-propagator) - [Baggage Propagator](#baggage-propagator) - [Built-in Sampler](#built-in-sampler) @@ -25,16 +25,16 @@ This package provides default implementations of the OpenTelemetry API for trace ### Built-in Propagators -#### HttpTraceContextPropagator Propagator +#### W3CTraceContextPropagator Propagator OpenTelemetry provides a text-based approach to propagate context to remote services using the [W3C Trace Context](https://www.w3.org/TR/trace-context/) HTTP headers. ```js const api = require("@opentelemetry/api"); -const { HttpTraceContextPropagator } = require("@opentelemetry/core"); +const { W3CTraceContextPropagator } = require("@opentelemetry/core"); /* Set Global Propagator */ -api.propagation.setGlobalPropagator(new HttpTraceContextPropagator()); +api.propagation.setGlobalPropagator(new W3CTraceContextPropagator()); ``` #### Composite Propagator @@ -57,10 +57,10 @@ Provides a text-based approach to propagate [baggage](https://w3c.github.io/bagg ```js const api = require("@opentelemetry/api"); -const { HttpBaggagePropagator } = require("@opentelemetry/core"); +const { W3CBaggagePropagator } = require("@opentelemetry/core"); /* Set Global Propagator */ -api.propagation.setGlobalPropagator(new HttpBaggagePropagator()); +api.propagation.setGlobalPropagator(new W3CBaggagePropagator()); ``` ### Built-in Sampler diff --git a/packages/opentelemetry-core/package.json b/packages/opentelemetry-core/package.json index 27766c1c29..38b843ddd1 100644 --- a/packages/opentelemetry-core/package.json +++ b/packages/opentelemetry-core/package.json @@ -24,7 +24,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-core/src/baggage/propagation/HttpBaggagePropagator.ts b/packages/opentelemetry-core/src/baggage/propagation/W3CBaggagePropagator.ts similarity index 97% rename from packages/opentelemetry-core/src/baggage/propagation/HttpBaggagePropagator.ts rename to packages/opentelemetry-core/src/baggage/propagation/W3CBaggagePropagator.ts index 521b4c55cd..652cc14c3a 100644 --- a/packages/opentelemetry-core/src/baggage/propagation/HttpBaggagePropagator.ts +++ b/packages/opentelemetry-core/src/baggage/propagation/W3CBaggagePropagator.ts @@ -42,7 +42,7 @@ import { * Based on the Baggage specification: * https://w3c.github.io/baggage/ */ -export class HttpBaggagePropagator implements TextMapPropagator { +export class W3CBaggagePropagator implements TextMapPropagator { inject(context: Context, carrier: unknown, setter: TextMapSetter): void { const baggage = propagation.getBaggage(context); if (!baggage || isTracingSuppressed(context)) return; diff --git a/packages/opentelemetry-core/src/index.ts b/packages/opentelemetry-core/src/index.ts index a204b15707..44c95f2fe9 100644 --- a/packages/opentelemetry-core/src/index.ts +++ b/packages/opentelemetry-core/src/index.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -export * from './baggage/propagation/HttpBaggagePropagator'; +export * from './baggage/propagation/W3CBaggagePropagator'; export * from './common/attributes'; export * from './common/global-error-handler'; export * from './common/logging-error-handler'; @@ -25,7 +25,7 @@ export * from './version'; export * as baggageUtils from './baggage/utils'; export * from './platform'; export * from './propagation/composite'; -export * from './trace/HttpTraceContextPropagator'; +export * from './trace/W3CTraceContextPropagator'; export * from './trace/IdGenerator'; export * from './trace/rpc-metadata'; export * from './trace/sampler/AlwaysOffSampler'; diff --git a/packages/opentelemetry-core/src/trace/HttpTraceContextPropagator.ts b/packages/opentelemetry-core/src/trace/W3CTraceContextPropagator.ts similarity index 98% rename from packages/opentelemetry-core/src/trace/HttpTraceContextPropagator.ts rename to packages/opentelemetry-core/src/trace/W3CTraceContextPropagator.ts index b41d99fbf9..6afce4c3ed 100644 --- a/packages/opentelemetry-core/src/trace/HttpTraceContextPropagator.ts +++ b/packages/opentelemetry-core/src/trace/W3CTraceContextPropagator.ts @@ -70,7 +70,7 @@ export function parseTraceParent(traceParent: string): SpanContext | null { * Based on the Trace Context specification: * https://www.w3.org/TR/trace-context/ */ -export class HttpTraceContextPropagator implements TextMapPropagator { +export class W3CTraceContextPropagator implements TextMapPropagator { inject(context: Context, carrier: unknown, setter: TextMapSetter): void { const spanContext = trace.getSpanContext(context); if ( diff --git a/packages/opentelemetry-core/src/version.ts b/packages/opentelemetry-core/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-core/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-core/test/baggage/HttpBaggagePropagator.test.ts b/packages/opentelemetry-core/test/baggage/W3CBaggagePropagator.test.ts similarity index 97% rename from packages/opentelemetry-core/test/baggage/HttpBaggagePropagator.test.ts rename to packages/opentelemetry-core/test/baggage/W3CBaggagePropagator.test.ts index 679d6f48d2..d00ce0c4b4 100644 --- a/packages/opentelemetry-core/test/baggage/HttpBaggagePropagator.test.ts +++ b/packages/opentelemetry-core/test/baggage/W3CBaggagePropagator.test.ts @@ -23,11 +23,11 @@ import { } from '@opentelemetry/api'; import { ROOT_CONTEXT } from '@opentelemetry/api'; import * as assert from 'assert'; -import { HttpBaggagePropagator } from '../../src/baggage/propagation/HttpBaggagePropagator'; +import { W3CBaggagePropagator } from '../../src/baggage/propagation/W3CBaggagePropagator'; import { BAGGAGE_HEADER } from '../../src/baggage/constants'; -describe('HttpBaggagePropagator', () => { - const httpBaggagePropagator = new HttpBaggagePropagator(); +describe('W3CBaggagePropagator', () => { + const httpBaggagePropagator = new W3CBaggagePropagator(); let carrier: { [key: string]: unknown }; @@ -196,7 +196,7 @@ describe('HttpBaggagePropagator', () => { describe('fields()', () => { it('returns the fields used by the baggage spec', () => { - const propagator = new HttpBaggagePropagator(); + const propagator = new W3CBaggagePropagator(); assert.deepStrictEqual(propagator.fields(), [BAGGAGE_HEADER]); }); }); diff --git a/packages/opentelemetry-core/test/propagation/composite.test.ts b/packages/opentelemetry-core/test/propagation/composite.test.ts index 1e5b6d989a..9436023584 100644 --- a/packages/opentelemetry-core/test/propagation/composite.test.ts +++ b/packages/opentelemetry-core/test/propagation/composite.test.ts @@ -26,13 +26,13 @@ import { Context, ROOT_CONTEXT } from '@opentelemetry/api'; import * as assert from 'assert'; import { CompositePropagator, - HttpTraceContextPropagator, + W3CTraceContextPropagator, RandomIdGenerator, } from '../../src'; import { TRACE_PARENT_HEADER, TRACE_STATE_HEADER, -} from '../../src/trace/HttpTraceContextPropagator'; +} from '../../src/trace/W3CTraceContextPropagator'; import { TraceState } from '../../src/trace/TraceState'; class DummyPropagator implements TextMapPropagator { @@ -78,7 +78,7 @@ describe('Composite Propagator', () => { it('should inject context using all configured propagators', () => { const composite = new CompositePropagator({ - propagators: [new DummyPropagator(), new HttpTraceContextPropagator()], + propagators: [new DummyPropagator(), new W3CTraceContextPropagator()], }); composite.inject(ctxWithSpanContext, carrier, defaultTextMapSetter); @@ -94,7 +94,7 @@ describe('Composite Propagator', () => { const composite = new CompositePropagator({ propagators: [ new ThrowingPropagator(), - new HttpTraceContextPropagator(), + new W3CTraceContextPropagator(), ], }); composite.inject(ctxWithSpanContext, carrier, defaultTextMapSetter); @@ -119,7 +119,7 @@ describe('Composite Propagator', () => { it('should extract context using all configured propagators', () => { const composite = new CompositePropagator({ - propagators: [new DummyPropagator(), new HttpTraceContextPropagator()], + propagators: [new DummyPropagator(), new W3CTraceContextPropagator()], }); const spanContext = trace.getSpanContext( composite.extract(ROOT_CONTEXT, carrier, defaultTextMapGetter) @@ -140,7 +140,7 @@ describe('Composite Propagator', () => { const composite = new CompositePropagator({ propagators: [ new ThrowingPropagator(), - new HttpTraceContextPropagator(), + new W3CTraceContextPropagator(), ], }); const spanContext = trace.getSpanContext( diff --git a/packages/opentelemetry-core/test/trace/HttpTraceContextPropagator.test.ts b/packages/opentelemetry-core/test/trace/W3CTraceContextPropagator.test.ts similarity index 98% rename from packages/opentelemetry-core/test/trace/HttpTraceContextPropagator.test.ts rename to packages/opentelemetry-core/test/trace/W3CTraceContextPropagator.test.ts index 0ccd526e6f..9dcdfe15b9 100644 --- a/packages/opentelemetry-core/test/trace/HttpTraceContextPropagator.test.ts +++ b/packages/opentelemetry-core/test/trace/W3CTraceContextPropagator.test.ts @@ -25,15 +25,15 @@ import { } from '@opentelemetry/api'; import * as assert from 'assert'; import { - HttpTraceContextPropagator, + W3CTraceContextPropagator, TRACE_PARENT_HEADER, TRACE_STATE_HEADER, -} from '../../src/trace/HttpTraceContextPropagator'; +} from '../../src/trace/W3CTraceContextPropagator'; import { suppressTracing } from '../../src/trace/suppress-tracing'; import { TraceState } from '../../src/trace/TraceState'; -describe('HttpTraceContextPropagator', () => { - const httpTraceContext = new HttpTraceContextPropagator(); +describe('W3CTraceContextPropagator', () => { + const httpTraceContext = new W3CTraceContextPropagator(); let carrier: { [key: string]: unknown }; beforeEach(() => { diff --git a/packages/opentelemetry-exporter-collector-grpc/package.json b/packages/opentelemetry-exporter-collector-grpc/package.json index 9f6dffbfad..68c1035187 100644 --- a/packages/opentelemetry-exporter-collector-grpc/package.json +++ b/packages/opentelemetry-exporter-collector-grpc/package.json @@ -16,7 +16,9 @@ "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "version": "node ../../scripts/version-update.js", - "watch": "npm run protos:copy && tsc -w" + "watch": "npm run protos:copy && tsc -w", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-collector-grpc/src/version.ts b/packages/opentelemetry-exporter-collector-grpc/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-exporter-collector-grpc/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-exporter-collector-proto/package.json b/packages/opentelemetry-exporter-collector-proto/package.json index 3c75cd7217..a5fd8ab5bc 100644 --- a/packages/opentelemetry-exporter-collector-proto/package.json +++ b/packages/opentelemetry-exporter-collector-proto/package.json @@ -16,7 +16,9 @@ "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "version": "node ../../scripts/version-update.js", - "watch": "npm run protos:copy && tsc -w" + "watch": "npm run protos:copy && tsc -w", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-collector-proto/src/version.ts b/packages/opentelemetry-exporter-collector-proto/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-exporter-collector-proto/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-exporter-collector/package.json b/packages/opentelemetry-exporter-collector/package.json index 532c5122a3..ada10fec40 100644 --- a/packages/opentelemetry-exporter-collector/package.json +++ b/packages/opentelemetry-exporter-collector/package.json @@ -22,7 +22,9 @@ "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-collector/src/version.ts b/packages/opentelemetry-exporter-collector/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-exporter-collector/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-exporter-jaeger/package.json b/packages/opentelemetry-exporter-jaeger/package.json index d4eb08a7db..dd36ce2692 100644 --- a/packages/opentelemetry-exporter-jaeger/package.json +++ b/packages/opentelemetry-exporter-jaeger/package.json @@ -14,7 +14,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch" + "watch": "tsc --build --watch", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-jaeger/src/version.ts b/packages/opentelemetry-exporter-jaeger/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-exporter-jaeger/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-exporter-prometheus/package.json b/packages/opentelemetry-exporter-prometheus/package.json index e6dbfdbf83..7815d82f8e 100644 --- a/packages/opentelemetry-exporter-prometheus/package.json +++ b/packages/opentelemetry-exporter-prometheus/package.json @@ -14,7 +14,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch" + "watch": "tsc --build --watch", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-prometheus/src/version.ts b/packages/opentelemetry-exporter-prometheus/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-exporter-prometheus/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-exporter-zipkin/package.json b/packages/opentelemetry-exporter-zipkin/package.json index f217b811e7..12342223f5 100644 --- a/packages/opentelemetry-exporter-zipkin/package.json +++ b/packages/opentelemetry-exporter-zipkin/package.json @@ -22,7 +22,9 @@ "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-exporter-zipkin/src/version.ts b/packages/opentelemetry-exporter-zipkin/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-exporter-zipkin/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-instrumentation-fetch/package.json b/packages/opentelemetry-instrumentation-fetch/package.json index 20d2371999..a18712648f 100644 --- a/packages/opentelemetry-instrumentation-fetch/package.json +++ b/packages/opentelemetry-instrumentation-fetch/package.json @@ -15,7 +15,9 @@ "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "fetch", diff --git a/packages/opentelemetry-instrumentation-fetch/src/version.ts b/packages/opentelemetry-instrumentation-fetch/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-instrumentation-fetch/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-instrumentation-grpc/package.json b/packages/opentelemetry-instrumentation-grpc/package.json index 548b8ea1be..77ec2844ec 100644 --- a/packages/opentelemetry-instrumentation-grpc/package.json +++ b/packages/opentelemetry-instrumentation-grpc/package.json @@ -14,7 +14,9 @@ "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch" + "watch": "tsc --build --watch", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation-grpc/src/version.ts b/packages/opentelemetry-instrumentation-grpc/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-instrumentation-grpc/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-instrumentation-grpc/test/helper.ts b/packages/opentelemetry-instrumentation-grpc/test/helper.ts index 559b9acf06..5a39f3fd68 100644 --- a/packages/opentelemetry-instrumentation-grpc/test/helper.ts +++ b/packages/opentelemetry-instrumentation-grpc/test/helper.ts @@ -19,7 +19,7 @@ import { SpanKind, propagation, trace, } from '@opentelemetry/api'; -import { HttpTraceContextPropagator } from '@opentelemetry/core'; +import { W3CTraceContextPropagator } from '@opentelemetry/core'; import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'; import { AsyncHooksContextManager } from '@opentelemetry/context-async-hooks'; import { ContextManager } from '@opentelemetry/api'; @@ -386,7 +386,7 @@ export const runTests = ( let contextManager: ContextManager; before(() => { - propagation.setGlobalPropagator(new HttpTraceContextPropagator()); + propagation.setGlobalPropagator(new W3CTraceContextPropagator()); }); beforeEach(() => { diff --git a/packages/opentelemetry-instrumentation-http/package.json b/packages/opentelemetry-instrumentation-http/package.json index 5495446266..1974c2ab75 100644 --- a/packages/opentelemetry-instrumentation-http/package.json +++ b/packages/opentelemetry-instrumentation-http/package.json @@ -14,7 +14,9 @@ "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch" + "watch": "tsc --build --watch", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation-http/src/version.ts b/packages/opentelemetry-instrumentation-http/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-instrumentation-http/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-instrumentation-xml-http-request/package.json b/packages/opentelemetry-instrumentation-xml-http-request/package.json index 6a489f8c37..7c02542ca5 100644 --- a/packages/opentelemetry-instrumentation-xml-http-request/package.json +++ b/packages/opentelemetry-instrumentation-xml-http-request/package.json @@ -15,7 +15,9 @@ "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation-xml-http-request/src/version.ts b/packages/opentelemetry-instrumentation-xml-http-request/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-instrumentation-xml-http-request/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-instrumentation/package.json b/packages/opentelemetry-instrumentation/package.json index e1f79174a8..a67e140633 100644 --- a/packages/opentelemetry-instrumentation/package.json +++ b/packages/opentelemetry-instrumentation/package.json @@ -44,7 +44,9 @@ "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'", "test:browser": "nyc karma start --single-run", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-instrumentation/src/version.ts b/packages/opentelemetry-instrumentation/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-instrumentation/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-propagator-b3/package.json b/packages/opentelemetry-propagator-b3/package.json index 674f8a60c3..24fe03b7d7 100644 --- a/packages/opentelemetry-propagator-b3/package.json +++ b/packages/opentelemetry-propagator-b3/package.json @@ -14,7 +14,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-propagator-b3/src/version.ts b/packages/opentelemetry-propagator-b3/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-propagator-b3/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-propagator-jaeger/package.json b/packages/opentelemetry-propagator-jaeger/package.json index 3ebcae1908..0d793bc93e 100644 --- a/packages/opentelemetry-propagator-jaeger/package.json +++ b/packages/opentelemetry-propagator-jaeger/package.json @@ -18,7 +18,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-propagator-jaeger/src/version.ts b/packages/opentelemetry-propagator-jaeger/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-propagator-jaeger/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-resources/package.json b/packages/opentelemetry-resources/package.json index 52ed4965da..4e71f7f23a 100644 --- a/packages/opentelemetry-resources/package.json +++ b/packages/opentelemetry-resources/package.json @@ -19,7 +19,9 @@ "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "version": "node ../../scripts/version-update.js" + "version": "node ../../scripts/version-update.js", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-resources/src/version.ts b/packages/opentelemetry-resources/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-resources/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-sdk-metrics-base/package.json b/packages/opentelemetry-sdk-metrics-base/package.json index 062d97e614..00d8068a86 100644 --- a/packages/opentelemetry-sdk-metrics-base/package.json +++ b/packages/opentelemetry-sdk-metrics-base/package.json @@ -15,7 +15,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-sdk-metrics-base/src/version.ts b/packages/opentelemetry-sdk-metrics-base/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-sdk-metrics-base/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-sdk-node/package.json b/packages/opentelemetry-sdk-node/package.json index ff42fa160e..6aff110494 100644 --- a/packages/opentelemetry-sdk-node/package.json +++ b/packages/opentelemetry-sdk-node/package.json @@ -13,7 +13,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch" + "watch": "tsc --build --watch", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-sdk-node/src/version.ts b/packages/opentelemetry-sdk-node/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-sdk-node/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-sdk-trace-base/package.json b/packages/opentelemetry-sdk-trace-base/package.json index 85fb3c6794..2d7a0102bd 100644 --- a/packages/opentelemetry-sdk-trace-base/package.json +++ b/packages/opentelemetry-sdk-trace-base/package.json @@ -23,7 +23,9 @@ "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts b/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts index d02d92bccb..e72e6b0cfb 100644 --- a/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts +++ b/packages/opentelemetry-sdk-trace-base/src/BasicTracerProvider.ts @@ -24,8 +24,8 @@ import { } from '@opentelemetry/api'; import { CompositePropagator, - HttpBaggagePropagator, - HttpTraceContextPropagator, + W3CBaggagePropagator, + W3CTraceContextPropagator, getEnv, } from '@opentelemetry/core'; import { Resource } from '@opentelemetry/resources'; @@ -57,8 +57,8 @@ export class BasicTracerProvider implements TracerProvider { string, PROPAGATOR_FACTORY >([ - ['tracecontext', () => new HttpTraceContextPropagator()], - ['baggage', () => new HttpBaggagePropagator()], + ['tracecontext', () => new W3CTraceContextPropagator()], + ['baggage', () => new W3CBaggagePropagator()], ]); protected static readonly _registeredExporters = new Map< diff --git a/packages/opentelemetry-sdk-trace-base/src/version.ts b/packages/opentelemetry-sdk-trace-base/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-sdk-trace-base/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-sdk-trace-node/package.json b/packages/opentelemetry-sdk-trace-node/package.json index 3a5c26beca..b8ecc09d73 100644 --- a/packages/opentelemetry-sdk-trace-node/package.json +++ b/packages/opentelemetry-sdk-trace-node/package.json @@ -14,7 +14,9 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch" + "watch": "tsc --build --watch", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-sdk-trace-node/src/version.ts b/packages/opentelemetry-sdk-trace-node/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-sdk-trace-node/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-sdk-trace-web/package.json b/packages/opentelemetry-sdk-trace-web/package.json index b4f940a09f..8e6c82616d 100644 --- a/packages/opentelemetry-sdk-trace-web/package.json +++ b/packages/opentelemetry-sdk-trace-web/package.json @@ -15,7 +15,9 @@ "version": "node ../../scripts/version-update.js", "tdd": "karma start", "test:browser": "nyc karma start --single-run", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-sdk-trace-web/src/version.ts b/packages/opentelemetry-sdk-trace-web/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-sdk-trace-web/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-semantic-conventions/package.json b/packages/opentelemetry-semantic-conventions/package.json index 1b28b2e009..fda3f4f414 100644 --- a/packages/opentelemetry-semantic-conventions/package.json +++ b/packages/opentelemetry-semantic-conventions/package.json @@ -14,7 +14,9 @@ "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "version": "node ../../scripts/version-update.js", - "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" + "watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-semantic-conventions/src/version.ts b/packages/opentelemetry-semantic-conventions/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-semantic-conventions/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-shim-opentracing/package.json b/packages/opentelemetry-shim-opentracing/package.json index b927a193ca..6c1348d80c 100644 --- a/packages/opentelemetry-shim-opentracing/package.json +++ b/packages/opentelemetry-shim-opentracing/package.json @@ -13,7 +13,9 @@ "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "version": "node ../../scripts/version-update.js" + "version": "node ../../scripts/version-update.js", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "keywords": [ "opentelemetry", diff --git a/packages/opentelemetry-shim-opentracing/src/version.ts b/packages/opentelemetry-shim-opentracing/src/version.ts deleted file mode 100644 index 2c1c3f80c6..0000000000 --- a/packages/opentelemetry-shim-opentracing/src/version.ts +++ /dev/null @@ -1,18 +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. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.25.0'; diff --git a/packages/opentelemetry-shim-opentracing/test/Shim.test.ts b/packages/opentelemetry-shim-opentracing/test/Shim.test.ts index 41035a3e91..3c38bd9888 100644 --- a/packages/opentelemetry-shim-opentracing/test/Shim.test.ts +++ b/packages/opentelemetry-shim-opentracing/test/Shim.test.ts @@ -20,8 +20,8 @@ import { BasicTracerProvider, Span } from '@opentelemetry/sdk-trace-base'; import { SpanContextShim, SpanShim, TracerShim } from '../src/shim'; import { CompositePropagator, - HttpBaggagePropagator, - HttpTraceContextPropagator, + W3CBaggagePropagator, + W3CTraceContextPropagator, timeInputToHrTime, } from '@opentelemetry/core'; import { @@ -41,8 +41,8 @@ import { SemanticAttributes } from '@opentelemetry/semantic-conventions'; describe('OpenTracing Shim', () => { const compositePropagator = new CompositePropagator({ propagators: [ - new HttpTraceContextPropagator(), - new HttpBaggagePropagator(), + new W3CTraceContextPropagator(), + new W3CBaggagePropagator(), ], }); diff --git a/packages/template/package.json b/packages/template/package.json index 3c99f09694..dea1646f16 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -23,7 +23,10 @@ }, "scripts": { "compile": "tsc --build", - "clean": "tsc --build --clean" + "version": "node ../../scripts/version-update.js", + "clean": "tsc --build --clean", + "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile" }, "Add these to scripts": { "compile": "tsc --build", diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..9e5bd2373e --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,33 @@ +{ + "bootstrap-sha": "0ef1fc28d366b74d98b73b5d6334ffdc75342fe2", + "plugins": ["node-workspace"], + "bump-minor-pre-major": true, + "packages": { + "packages/opentelemetry-api-metrics": {}, + "packages/opentelemetry-context-async-hooks": {}, + "packages/opentelemetry-context-zone-peer-dep": {}, + "packages/opentelemetry-context-zone": {}, + "packages/opentelemetry-core": {}, + "packages/opentelemetry-exporter-collector-grpc": {}, + "packages/opentelemetry-exporter-collector-proto": {}, + "packages/opentelemetry-exporter-collector": {}, + "packages/opentelemetry-exporter-jaeger": {}, + "packages/opentelemetry-exporter-prometheus": {}, + "packages/opentelemetry-exporter-zipkin": {}, + "packages/opentelemetry-instrumentation-fetch": {}, + "packages/opentelemetry-instrumentation-grpc": {}, + "packages/opentelemetry-instrumentation-http": {}, + "packages/opentelemetry-instrumentation-xml-http-request": {}, + "packages/opentelemetry-instrumentation": {}, + "packages/opentelemetry-propagator-b3": {}, + "packages/opentelemetry-propagator-jaeger": {}, + "packages/opentelemetry-resources": {}, + "packages/opentelemetry-sdk-metrics-base": {}, + "packages/opentelemetry-sdk-node": {}, + "packages/opentelemetry-sdk-trace-base": {}, + "packages/opentelemetry-sdk-trace-node": {}, + "packages/opentelemetry-sdk-trace-web": {}, + "packages/opentelemetry-semantic-conventions": {}, + "packages/opentelemetry-shim-opentracing": {} + } +}