Skip to content

Commit 0f8aa79

Browse files
dyladanlegendecasmartinkubarenovate-botseemk
authored
Update next branch (#4294)
* chore: track package-lock.json (#4238) * chore: track package-lock.json * Pin to old versions for node 14 * Use version range * Remove unused cached directories * Temporarily disable other tests * Temporarily enable only api test * Enable only some packages * Test only api packages * Test trace exporters * Fix line ordering * Test all packages except otlp exporters * Add trace http exporter * Add trace proto exporter * Test all but grpc exporters * chore: use npm workspaces and degrade lerna to v6 * chore: get rid of lerna bootstrap * chore: use npx * chore: allow install scripts to setup buf * chore: fix w3c-integration-test cache key * chore: fix cache key * chore: disable resource compat test * chore: fix node_modules assumptions * chore: fix hoisted karma issue * chore: fix markdown linter complaints * chore: lock @grpc/grpc-js to v1.8.21 * Break caches * chore: remove cache * chore: fixup inline commands --------- Co-authored-by: Daniel Dyla <[email protected]> * docs: fixed link to benchmark results (#4233) Co-authored-by: Chengzhong Wu <[email protected]> * chore(deps): update all patch versions (#4215) * fix: otlp json encoding (#4220) Co-authored-by: Marc Pichler <[email protected]> * fix: remove duplicate export star from version.ts (#4225) Co-authored-by: Marc Pichler <[email protected]> * docs: fix sdk-node config instructions (#4249) Co-authored-by: Marc Pichler <[email protected]> * feat(api): publish api esnext target (#4231) * chore: release API 1.7.0/Core 1.18.0/Experimental 0.45.0 (#4254) * fix(sdk-metrics): hand-roll MetricAdvice type as older API versions do not include it (#4260) * chore: prepare release 1.18.1/0.45.1 (#4261) * chore: no need for 'packages' in "lerna.json" (#4264) * Benchmark tests for trace OTLP transform and BatchSpanProcessor (#4218) Co-authored-by: Marc Pichler <[email protected]> * chore: type reference on zone.js (#4257) Co-authored-by: Marc Pichler <[email protected]> * docs: add docker-compose to run prometheus for the experimental example (#4268) Co-authored-by: Marc Pichler <[email protected]> * fix(sdk-logs): avoid map attribute set when count limit exceeded (#4195) Co-authored-by: Marc Pichler <[email protected]> * chore(deps): update dependency chromedriver to v119 [security] (#4280) * chore(deps): update actions/setup-node action to v4 (#4236) * fix(sdk-trace-base): processor onStart called with a span having empty attributes (#4277) Co-authored-by: artahmetaj <[email protected]> * Update fetch instrumentation to be runtime agnostic (#4063) Co-authored-by: Marc Pichler <[email protected]> --------- Co-authored-by: Chengzhong Wu <[email protected]> Co-authored-by: Martin Kuba <[email protected]> Co-authored-by: Mend Renovate <[email protected]> Co-authored-by: Siim Kallas <[email protected]> Co-authored-by: Marc Pichler <[email protected]> Co-authored-by: David Luna <[email protected]> Co-authored-by: Dinko Osrecki <[email protected]> Co-authored-by: Trent Mick <[email protected]> Co-authored-by: François <[email protected]> Co-authored-by: Hyun Oh <[email protected]> Co-authored-by: André Cruz <[email protected]> Co-authored-by: artahmetaj <[email protected]> Co-authored-by: drewcorlin1 <[email protected]>
1 parent 1c7d7a3 commit 0f8aa79

File tree

126 files changed

+64948
-1146
lines changed

Some content is hidden

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

126 files changed

+64948
-1146
lines changed

.github/workflows/benchmark.yml

+3-19
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,17 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@v3
2121

22-
- uses: actions/setup-node@v3
22+
- uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node_version }}
2525

2626
- run: npm install -g npm@latest
2727

28-
- name: restore lerna
29-
id: cache
30-
uses: actions/cache@v3
31-
with:
32-
path: |
33-
node_modules
34-
package-lock.json
35-
packages/*/node_modules
36-
packages/*/package-lock.json
37-
experimental/packages/*/node_modules
38-
experimental/packages/*/package-lock.json
39-
key: node-tests-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}-04292022
40-
4128
- name: Bootstrap
42-
run: |
43-
npm install --ignore-scripts
44-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --ignore @opentelemetry/selenium-tests
29+
run: npm ci
4530

4631
- name: Build 🔧
47-
run: |
48-
npm run compile
32+
run: npm run compile
4933

5034
- name: Benchmark tests
5135
run: |

.github/workflows/docs.yaml

+3-25
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,13 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@v4
1313

14-
- uses: actions/setup-node@v3
14+
- uses: actions/setup-node@v4
1515
with:
1616
node-version: '18'
1717

18-
- name: restore lock files
19-
uses: actions/cache@master # must use unreleased master to cache multiple paths
20-
id: cache
21-
with:
22-
# must be done before bootstrap to not include node_modules files in the cache paths
23-
path: |
24-
package-lock.json
25-
packages/*/package-lock.json
26-
backwards-compatibility/*/package-lock.json
27-
metapackages/*/package-lock.json
28-
packages/*/package-lock.json
29-
integration-tests/*/package-lock.json
30-
key: ${{ runner.os }}-unit_test-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }}
31-
- name: Install and Build (cache miss) 🔧
32-
if: steps.cache.outputs.cache-hit != 'true'
33-
run: |
34-
npm install --ignore-scripts
35-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
36-
npm run compile
37-
38-
- name: Install and Build (cache hit) 🔧
39-
if: steps.cache.outputs.cache-hit == 'true'
18+
- name: Install and Build 🔧
4019
run: |
41-
npm ci --ignore-scripts
42-
npx lerna bootstrap --hoist --nohoist='zone.js'
20+
npm ci
4321
npm run compile
4422
4523
- name: Build Docs

.github/workflows/lint.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/setup-node@v3
15+
- uses: actions/setup-node@v4
1616
with:
1717
node-version: '16'
1818

@@ -34,24 +34,8 @@ jobs:
3434
args: "./**/*.md"
3535
ignore: './CHANGELOG.md ./experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/protos ./experimental/packages/opentelemetry-exporter-metrics-otlp-proto/protos ./packages/exporter-trace-otlp-grpc/protos ./packages/exporter-trace-otlp-proto/protos'
3636

37-
- name: restore lerna
38-
id: cache
39-
uses: actions/cache@v3
40-
with:
41-
path: |
42-
node_modules
43-
package-lock.json
44-
packages/*/node_modules
45-
packages/*/package-lock.json
46-
experimental/packages/*/node_modules
47-
experimental/packages/*/package-lock.json
48-
key: lint-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}-04142022
49-
50-
# On a cache miss, install dependencies
5137
- name: Bootstrap
52-
run: |
53-
npm install --ignore-scripts
54-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
38+
run: npm ci
5539

5640
- name: Lint
5741
run: |

.github/workflows/peer-api.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Install lerna
20-
run: npm install -g lerna
20+
run: npm install -g lerna@6.6.2
2121

2222
- name: Install semver
2323
run: npm install semver

.github/workflows/unit-test.yml

+12-79
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424

25-
- uses: actions/setup-node@v3
25+
- uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node_version }}
2828

@@ -33,31 +33,11 @@ jobs:
3333
- run: npm install -g npm@"<10.0.0"
3434
if: ${{ matrix.node_version == '14' || matrix.node_version == '16' }}
3535

36-
- name: restore lerna
37-
id: cache
38-
uses: actions/cache@v3
39-
with:
40-
path: |
41-
node_modules
42-
package-lock.json
43-
packages/*/node_modules
44-
packages/*/package-lock.json
45-
experimental/packages/*/node_modules
46-
experimental/packages/*/package-lock.json
47-
key: node-tests-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}-04292022
48-
49-
# temporary fix for https://github.com/nrwl/nx/issues/19022
50-
- run: npm install --save-dev [email protected] @nx/[email protected]
51-
if: ${{ matrix.node_version == '14' }}
52-
5336
- name: Bootstrap
54-
run: |
55-
npm install --ignore-scripts
56-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --ignore @opentelemetry/selenium-tests
37+
run: npm ci
5738

5839
- name: Build 🔧
59-
run: |
60-
npm run compile
40+
run: npm run compile
6141

6242
- name: Unit tests
6343
run: |
@@ -77,29 +57,14 @@ jobs:
7757
- name: Checkout
7858
uses: actions/checkout@v4
7959

80-
- uses: actions/setup-node@v3
60+
- uses: actions/setup-node@v4
8161
with:
8262
node-version: '18'
8363

8464
- run: npm install -g npm@latest
8565

86-
- name: restore lerna
87-
id: cache
88-
uses: actions/cache@v3
89-
with:
90-
path: |
91-
node_modules
92-
package-lock.json
93-
packages/*/node_modules
94-
packages/*/package-lock.json
95-
experimental/packages/*/node_modules
96-
experimental/packages/*/package-lock.json
97-
key: node-windows-tests-${{ runner.os }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}
98-
9966
- name: Bootstrap
100-
run: |
101-
npm install --ignore-scripts
102-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --ignore @opentelemetry/selenium-tests
67+
run: npm ci
10368

10469
- name: Build 🔧
10570
run: |
@@ -118,31 +83,15 @@ jobs:
11883
- name: Checkout
11984
uses: actions/checkout@v4
12085

121-
- uses: actions/setup-node@v3
86+
- uses: actions/setup-node@v4
12287
with:
12388
node-version: 16
12489

125-
- name: restore lerna
126-
id: cache
127-
uses: actions/cache@v3
128-
with:
129-
path: |
130-
node_modules
131-
package-lock.json
132-
packages/*/node_modules
133-
packages/*/package-lock.json
134-
experimental/packages/*/node_modules
135-
experimental/packages/*/package-lock.json
136-
key: browser-tests-${{ runner.os }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}-04292022
137-
13890
- name: Bootstrap
139-
run: |
140-
npm install --ignore-scripts
141-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --ignore @opentelemetry/selenium-tests
91+
run: npm ci
14292

14393
- name: Build 🔧
144-
run: |
145-
npm run compile
94+
run: npm run compile
14695

14796
- name: Unit tests
14897
run: npm run test:browser
@@ -155,31 +104,15 @@ jobs:
155104
steps:
156105
- name: Checkout
157106
uses: actions/[email protected]
158-
- uses: actions/setup-node@v3
107+
- uses: actions/setup-node@v4
159108
with:
160109
node-version: 16
161110

162-
- name: restore lerna
163-
id: cache
164-
uses: actions/cache@v3
165-
with:
166-
path: |
167-
node_modules
168-
package-lock.json
169-
packages/*/node_modules
170-
packages/*/package-lock.json
171-
experimental/packages/*/node_modules
172-
experimental/packages/*/package-lock.json
173-
key: webworker-tests-${{ runner.os }}-${{ hashFiles('package.json', 'packages/*/package.json', 'experimental/packages/*/package.json') }}-04292022
174-
175111
- name: Bootstrap
176-
run: |
177-
npm install --ignore-scripts
178-
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js'
112+
run: npm ci
179113

180114
- name: Build 🔧
181-
run: |
182-
npm run compile
115+
run: npm run compile
183116

184117
- name: Unit tests
185118
run: npm run test:webworker
@@ -198,7 +131,7 @@ jobs:
198131
- name: Checkout
199132
uses: actions/checkout@v4
200133

201-
- uses: actions/setup-node@v3
134+
- uses: actions/setup-node@v4
202135
with:
203136
node-version: ${{ matrix.node_version }}
204137

.github/workflows/w3c-integration-test.yml

+4-26
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,15 @@ jobs:
1414
- name: Checkout 🛎️
1515
uses: actions/checkout@v4
1616

17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '16'
2020

21-
- name: restore lock files
22-
uses: actions/cache@master # must use unreleased master to cache multiple paths
23-
id: cache
24-
with:
25-
# must be done before bootstrap to not include node_modules files in the cache paths
26-
path: |
27-
package-lock.json
28-
packages/*/package-lock.json
29-
metapackages/*/package-lock.json
30-
packages/*/package-lock.json
31-
integration-tests/*/package-lock.json
32-
key: ${{ runner.os }}-w3c_integration-${{ hashFiles('**/package.json') }}
33-
34-
- name: Install and Bootstrap (cache miss) 🔧
35-
if: steps.cache.outputs.cache-hit != 'true'
36-
run: |
37-
npm install --ignore-scripts
38-
npx lerna bootstrap --no-ci --hoist --scope=propagation-validation-server --include-dependencies
39-
40-
- name: Install and Bootstrap (cache hit) 🔧
41-
if: steps.cache.outputs.cache-hit == 'true'
42-
run: |
43-
npm ci --ignore-scripts
44-
npx lerna bootstrap --hoist --scope=propagation-validation-server --include-dependencies
21+
- name: Install and Bootstrap 🔧
22+
run: npm ci
4523

4624
- name: Generate version.ts files
47-
run: lerna run version
25+
run: npm run version:update
4826

4927
- name: Build 🔧
5028
run: npm run compile

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ typings/
6666

6767
# lock files
6868
yarn.lock
69-
package-lock.json
7069

7170
# docs files
7271
docs

CHANGELOG.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,39 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/
1111

1212
### :rocket: (Enhancement)
1313

14+
### :books: (Refine Doc)
15+
16+
### :house: (Internal)
17+
18+
* chore: type reference on zone.js [#4257](https://github.com/open-telemetry/opentelemetry-js/pull/4257) @legendecas
19+
* chore: no need for 'packages' in lerna.json [#4264](https://github.com/open-telemetry/opentelemetry-js/pull/4264) @trentm
20+
21+
### :bug: (Bug Fix)
22+
23+
* fix(sdk-trace-web): only access location if it is defined [#4063](https://github.com/open-telemetry/opentelemetry-js/pull/4063)
24+
* fix(sdk-trace-base): processor onStart called with a span having empty attributes
25+
26+
## 1.18.1
27+
28+
### :bug: (Bug Fix)
29+
30+
* fix(sdk-metrics): hand-roll MetricAdvice type as older API versions do not include it #4260
31+
32+
## 1.18.0
33+
34+
### :rocket: (Enhancement)
35+
1436
* feat(metrics): prototype experimental advice support [#3876](https://github.com/open-telemetry/opentelemetry-js/pull/3876) @legendecas
1537

1638
### :bug: (Bug Fix)
1739

18-
### :books: (Refine Doc)
40+
* fix(core): remove re-export of `version.ts` [#4225](https://github.com/open-telemetry/opentelemetry-js/pull/4225) @david-luna
1941

2042
### :house: (Internal)
2143

44+
* chore: track package-lock.json [#4238](https://github.com/open-telemetry/opentelemetry-js/pull/4238) @legendecas
45+
* Switched to npm workspaces to bootstrap dependencies.
46+
2247
## 1.17.1
2348

2449
### :bug: (Bug Fix)

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Most of the commands needed for development are accessed as [npm scripts](https:
161161

162162
### Install dependencies
163163

164-
This will install all dependencies for the root project and all modules managed by `lerna`. By default, a `postinstall` script will run `lerna bootstrap` automatically after an install. This can be avoided using the `--ignore-scripts` option if desired.
164+
This will install all dependencies for the root project and all modules managed by `npm workspaces`.
165165

166166
```sh
167167
npm install

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ The below table describes which versions of each set of packages are expected to
143143

144144
| Stable Packages | Experimental Packages |
145145
|-----------------------------------------------------------------|-----------------------|
146-
| 1.17.x | 0.43.x |
146+
| 1.18.x | 0.45.x |
147+
| 1.17.x | 0.44.x |
147148
| 1.16.x | 0.42.x |
148149
| 1.15.x | 0.41.x |
149150
| 1.14.x | 0.40.x |

api/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
## Unreleased
66

7+
## 1.7.0
8+
79
### :rocket: (Enhancement)
810

911
* feat(metrics): prototype experimental advice support [#3876](https://github.com/open-telemetry/opentelemetry-js/pull/3876) @legendecas
12+
* feat(api): publish api esnext target [#4231](https://github.com/open-telemetry/opentelemetry-js/pull/4231) @legendecas
1013

1114
## 1.6.0
1215

0 commit comments

Comments
 (0)