Skip to content

Commit f544c93

Browse files
committed
Merge branch 'main' of github.com:open-telemetry/opentelemetry-js into config-yml
2 parents a6d0fca + 31640eb commit f544c93

File tree

69 files changed

+319
-2905
lines changed

Some content is hidden

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

69 files changed

+319
-2905
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2
3636
* fix(resource): do not trigger `Accessing resource attributes before async attributes settled` warning when detecting resources [#5546](https://github.com/open-telemetry/opentelemetry-js/pull/5546) @dyladan
3737
* verbose logging of detected resource removed
3838
* fix(resource): use dynamic import over require to improve ESM compliance [#5298](https://github.com/open-telemetry/opentelemetry-js/pull/5298) @xiaoxiangmoe
39+
* fix(core): `getNumberFromEnv` should return number | undefined [#5874](https://github.com/open-telemetry/opentelemetry-js/pull/5874) @shubham-vunet
3940

4041
### :books: Documentation
4142

api/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"repository": "open-telemetry/opentelemetry-js",
3030
"scripts": {
3131
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
32-
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
32+
"precompile": "lerna run version --scope @opentelemetry/api --include-dependencies",
3333
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
3434
"lint:fix": "eslint . --ext .ts --fix",
3535
"lint": "eslint . --ext .ts",
@@ -79,7 +79,6 @@
7979
"@types/webpack": "5.28.5",
8080
"@types/webpack-env": "1.16.3",
8181
"babel-plugin-istanbul": "7.0.0",
82-
"cross-var": "1.1.0",
8382
"dpdm": "3.13.1",
8483
"karma": "6.4.4",
8584
"karma-chrome-launcher": "3.1.0",

api/src/platform/browser/globalThis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
/** only globals that common to node and browsers are allowed */
28-
// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
28+
// eslint-disable-next-line n/no-unsupported-features/es-builtins, no-undef
2929
export const _globalThis: typeof globalThis =
3030
typeof globalThis === 'object'
3131
? globalThis

api/src/platform/node/globalThis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
*/
1616

1717
/** only globals that common to node and browsers are allowed */
18-
// eslint-disable-next-line node/no-unsupported-features/es-builtins
18+
// eslint-disable-next-line n/no-unsupported-features/es-builtins
1919
export const _globalThis = typeof globalThis === 'object' ? globalThis : global;

eslint.base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
plugins: [
33
"@typescript-eslint",
44
"header",
5-
"node",
5+
"n",
66
"prettier"
77
],
88
extends: ["eslint:recommended", "plugin:prettier/recommended"],
@@ -19,7 +19,7 @@ module.exports = {
1919
"prefer-rest-params": "off",
2020
"no-console": "error",
2121
"no-shadow": "off",
22-
"node/no-deprecated-api": ["warn"],
22+
"n/no-deprecated-api": ["warn"],
2323
"header/header": ["error", "block", [{
2424
pattern: / \* Copyright The OpenTelemetry Authors[\r\n]+ \*[\r\n]+ \* Licensed under the Apache License, Version 2\.0 \(the \"License\"\);[\r\n]+ \* you may not use this file except in compliance with the License\.[\r\n]+ \* You may obtain a copy of the License at[\r\n]+ \*[\r\n]+ \* https:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0[\r\n]+ \*[\r\n]+ \* Unless required by applicable law or agreed to in writing, software[\r\n]+ \* distributed under the License is distributed on an \"AS IS\" BASIS,[\r\n]+ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.[\r\n]+ \* See the License for the specific language governing permissions and[\r\n]+ \* limitations under the License\./gm,
2525
template:

experimental/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2
99
### :boom: Breaking Changes
1010

1111
* feat(api-logs)!: Marked private methods as "conventionally private". [#5789](https://github.com/open-telemetry/opentelemetry-js/pull/5789)
12+
* feat(exporter-otlp-\*): support custom HTTP agents [#5719](https://github.com/open-telemetry/opentelemetry-js/pull/5719) @raphael-theriault-swi
13+
* `OtlpHttpConfiguration.agentOptions` has been removed and functionality has been rolled into `OtlpHttpConfiguration.agentFactory`
14+
* (old) `{ agentOptions: myOptions }`
15+
* (new) `{ agentFactory: httpAgentFactoryFromOptions(myOptions) }`
1216

1317
### :rocket: Features
1418

experimental/packages/api-logs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"lint:fix": "eslint . --ext .ts --fix",
2525
"version": "node ../../../scripts/version-update.js",
2626
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
27-
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
27+
"precompile": "lerna run version --scope @opentelemetry/api-logs --include-dependencies",
2828
"prewatch": "node ../../../scripts/version-update.js",
2929
"align-api-deps": "node ../../../scripts/align-api-deps.js"
3030
},
@@ -67,7 +67,6 @@
6767
"@types/node": "^8.10.66",
6868
"@types/webpack-env": "1.16.3",
6969
"babel-plugin-istanbul": "7.0.0",
70-
"cross-var": "1.1.0",
7170
"karma": "6.4.4",
7271
"karma-chrome-launcher": "3.1.0",
7372
"karma-coverage": "2.2.1",

experimental/packages/api-logs/src/platform/browser/globalThis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727

2828
/** only globals that common to node and browsers are allowed */
29-
// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
29+
// eslint-disable-next-line n/no-unsupported-features/es-builtins, no-undef
3030
export const _globalThis: typeof globalThis =
3131
typeof globalThis === 'object'
3232
? globalThis

experimental/packages/api-logs/src/platform/node/globalThis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
*/
1616

1717
/** only globals that common to node and browsers are allowed */
18-
// eslint-disable-next-line node/no-unsupported-features/es-builtins
18+
// eslint-disable-next-line n/no-unsupported-features/es-builtins
1919
export const _globalThis = typeof globalThis === 'object' ? globalThis : global;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test": "nyc mocha 'test/**/*.test.ts'",
1616
"version": "node ../../../scripts/version-update.js",
1717
"watch": "tsc --watch --build",
18-
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
18+
"precompile": "lerna run version --scope @opentelemetry/exporter-logs-otlp-grpc --include-dependencies",
1919
"prewatch": "npm run precompile",
2020
"peer-api-check": "node ../../../scripts/peer-api-check.js",
2121
"align-api-deps": "node ../../../scripts/align-api-deps.js"
@@ -55,7 +55,6 @@
5555
"@types/mocha": "10.0.10",
5656
"@types/node": "18.6.5",
5757
"@types/sinon": "17.0.4",
58-
"cross-var": "1.1.0",
5958
"lerna": "6.6.2",
6059
"mocha": "11.1.0",
6160
"nyc": "17.1.0",

0 commit comments

Comments
 (0)