Skip to content

Commit 0bceedc

Browse files
authored
Merge branch 'main' into fix/instrumentation-fetch
2 parents 75cbbbd + 98f9d72 commit 0bceedc

67 files changed

Lines changed: 2092 additions & 8535 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,10 @@ body:
137137
placeholder: Node.js v20.12.1, Node.js v18.18.2, Firefox 130, Chrome 132, ...
138138
validations:
139139
required: false
140+
- type: dropdown
141+
attributes:
142+
label: Tip
143+
description: This element is static, used to render a helpful sub-heading for end-users and community members to help prioritize issues. Please leave as is.
144+
options:
145+
- <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. [Learn more here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
146+
default: 0

.github/ISSUE_TEMPLATE/discussion.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ labels: discussion
1010

1111
- [ ] This only affects the JavaScript OpenTelemetry library
1212
- [ ] This may affect other libraries, but I would like to get opinions here first
13+
14+
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. [Learn more here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ A clear and concise description of any alternative solutions or features you've
2121
### Additional context
2222

2323
Add any other context or screenshots about the feature request here.
24+
25+
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. [Learn more here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>

.github/ISSUE_TEMPLATE/request_for_instrumentation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ Add any other context or screenshots about the plugin request here.
2727
-->
2828

2929
#### Is there a reference you could point for the well-defined lifecycle methods**
30+
31+
<sub>**Tip**: [React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. [Learn more here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>

CHANGELOG.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,26 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2
1010

1111
## Unreleased
1212

13-
* feat(instrumentation-http): Added support for redacting specific url query string values and url credentials in instrumentations [#5743](https://github.com/open-telemetry/opentelemetry-js/pull/5743) @rads-1996
14-
1513
### :boom: Breaking Changes
1614

1715
### :rocket: Features
1816

17+
### :bug: Bug Fixes
18+
19+
### :books: Documentation
20+
21+
### :house: Internal
22+
23+
## 2.1.0
24+
25+
### :rocket: Features
26+
1927
* feat(opentelemetry-resources): add schema url [#5070](https://github.com/open-telemetry/opentelemetry-js/pull/5753) @c-ehrlich
2028

2129
### :bug: Bug Fixes
2230

2331
* fix(sdk-metrics): Remove invalid default value for `startTime` param to ExponentialHistogramAccumulation. This only impacted the closurescript compiler. [#5763](https://github.com/open-telemetry/opentelemetry-js/pull/5763) @trentm
2432

25-
### :books: Documentation
26-
2733
### :house: Internal
2834

2935
* chore: enable tsconfig isolatedModules [#5697](https://github.com/open-telemetry/opentelemetry-js/pull/5697) @legendecas
@@ -171,10 +177,10 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2
171177
* feat(core)!: drop `getEnv()`, `getEnvWithoutDefaults()` [#5481](https://github.com/open-telemetry/opentelemetry-js/pull/5481) @pichlermarc
172178
* (user-facing): `getEnv()` has been replaced by `getStringFromEnv()`, `getNumberFromEnv()`, `getBooleanFromEnv()`, `getStringListFromEnv()`
173179
* these new functions do not include defaults, please inline any defaults if necessary (example: `getStringFromEnv("OTEL_FOO") ?? "my-default"`)
174-
* to find the previously used defaults, please see [here](https://github.com/open-telemetry/opentelemetry-js/blob/e9d3c71918635d490b6a9ac9f8259265b38394d0/packages/opentelemetry-core/src/utils/environment.ts#L154-L239)
180+
* see [the previously used defaults here](https://github.com/open-telemetry/opentelemetry-js/blob/e9d3c71918635d490b6a9ac9f8259265b38394d0/packages/opentelemetry-core/src/utils/environment.ts#L154-L239)
175181
* (user-facing): `getEnvWithoutDefaults()` has been replaced by `getStringFromEnv()`, `getNumberFromEnv()`, `getBooleanFromEnv()`, `getStringListFromEnv()`
176182
* (user-facing): `DEFAULT_ENVIRONMENT` has been removed, please inline any defaults from now on
177-
* to find the previously used defaults, please see [here](https://github.com/open-telemetry/opentelemetry-js/blob/e9d3c71918635d490b6a9ac9f8259265b38394d0/packages/opentelemetry-core/src/utils/environment.ts#L154-L239)
183+
* see [the previously used defaults here](https://github.com/open-telemetry/opentelemetry-js/blob/e9d3c71918635d490b6a9ac9f8259265b38394d0/packages/opentelemetry-core/src/utils/environment.ts#L154-L239)
178184
* (user-facing): `ENVIRONMENT` has been removed without replacement
179185
* (user-facing): `RAW_ENVIRONMENT` has been removed without replacement
180186
* (user-facing): `parseEnvironment` has been removed without replacement

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ for general practices for OpenTelemetry project.
8484

8585
#### Conventional commit
8686

87-
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages. You can see examples [here](https://www.conventionalcommits.org/en/v1.0.0-beta.4/#examples).
87+
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages. See [example commit messages here](https://www.conventionalcommits.org/en/v1.0.0-beta.4/#examples).
8888

8989
It is recommended to have your commit messages follow the Conventional Commits specification, with possible types listed in [.commitlint.rc.yml](.commitlintrc.yml). Here an example that uses the recommended format: `git commit -s -am "chore(opentelemetry-core): update deps"`
9090

doc/upgrade-to-2.x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ If you maintain an *implementation* of a resource detector, i.e. if you have a c
208208

209209
The environment variable utilities have changed to no longer have one large load and parse of all possible `OTEL_*` environment variables. Instead there are `get{Type}FromEnv()` utilities to handle the various [specified OpenTelemetry SDK environment variable types](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#configuration-types).
210210

211-
The caller should now handle default values. The authority for default values is the [OpenTelemetry Environment Variable Spec](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration). The previously used defaults in the 1.x code can be seen [here](https://github.com/open-telemetry/opentelemetry-js/blob/e9d3c71918635d490b6a9ac9f8259265b38394d0/packages/opentelemetry-core/src/utils/environment.ts#L154-L239).
211+
The caller should now handle default values. The authority for default values is the [OpenTelemetry Environment Variable Spec](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration). See [the previously used defaults in the 1.x code here](https://github.com/open-telemetry/opentelemetry-js/blob/e9d3c71918635d490b6a9ac9f8259265b38394d0/packages/opentelemetry-core/src/utils/environment.ts#L154-L239).
212212

213213
- `getEnv().OTEL_FOO` -> `get{Type}FromEnv('OTEL_FOO') ?? defaultValue`
214214
- `getStringFromEnv()`

e2e-tests/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@opentelemetry/e2e-test",
33
"private": true,
44
"description": "End-to-end tests for OpenTelemetry JS",
5-
"version": "0.2.0",
5+
"version": "0.3.0",
66
"scripts": {
77
"test:e2e": "npm run stop-collector; npm run run-collector && npm run export-telemetry && npm run verify || npm run stop-collector",
88
"lint": "eslint . --ext .mjs",
@@ -15,13 +15,13 @@
1515
},
1616
"dependencies": {
1717
"@opentelemetry/api": "^1.3.0",
18-
"@opentelemetry/api-logs": "0.203.0",
19-
"@opentelemetry/exporter-logs-otlp-proto": "0.203.0",
20-
"@opentelemetry/exporter-metrics-otlp-proto": "0.203.0",
21-
"@opentelemetry/exporter-trace-otlp-proto": "0.203.0",
22-
"@opentelemetry/sdk-logs": "0.203.0",
23-
"@opentelemetry/sdk-metrics": "2.0.1",
24-
"@opentelemetry/sdk-node": "0.203.0",
25-
"@opentelemetry/sdk-trace-base": "2.0.1"
18+
"@opentelemetry/api-logs": "0.204.0",
19+
"@opentelemetry/exporter-logs-otlp-proto": "0.204.0",
20+
"@opentelemetry/exporter-metrics-otlp-proto": "0.204.0",
21+
"@opentelemetry/exporter-trace-otlp-proto": "0.204.0",
22+
"@opentelemetry/sdk-logs": "0.204.0",
23+
"@opentelemetry/sdk-metrics": "2.1.0",
24+
"@opentelemetry/sdk-node": "0.204.0",
25+
"@opentelemetry/sdk-trace-base": "2.1.0"
2626
}
2727
}

examples/esm-http-ts/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "esm-http-ts",
33
"private": true,
4-
"version": "0.203.0",
4+
"version": "0.204.0",
55
"description": "Example of HTTP integration with OpenTelemetry using ESM and TypeScript",
66
"main": "build/index.js",
77
"type": "module",
@@ -32,12 +32,12 @@
3232
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/",
3333
"dependencies": {
3434
"@opentelemetry/api": "1.9.0",
35-
"@opentelemetry/exporter-trace-otlp-proto": "0.203.0",
36-
"@opentelemetry/instrumentation": "0.203.0",
37-
"@opentelemetry/instrumentation-http": "0.203.0",
38-
"@opentelemetry/resources": "2.0.1",
39-
"@opentelemetry/sdk-trace-base": "2.0.1",
40-
"@opentelemetry/sdk-trace-node": "2.0.1",
35+
"@opentelemetry/exporter-trace-otlp-proto": "0.204.0",
36+
"@opentelemetry/instrumentation": "0.204.0",
37+
"@opentelemetry/instrumentation-http": "0.204.0",
38+
"@opentelemetry/resources": "2.1.0",
39+
"@opentelemetry/sdk-trace-base": "2.1.0",
40+
"@opentelemetry/sdk-trace-node": "2.1.0",
4141
"@opentelemetry/semantic-conventions": "^1.29.0"
4242
}
4343
}

examples/http/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "http-example",
33
"private": true,
4-
"version": "0.203.0",
4+
"version": "0.204.0",
55
"description": "Example of HTTP integration with OpenTelemetry",
66
"main": "index.js",
77
"scripts": {
@@ -30,13 +30,13 @@
3030
},
3131
"dependencies": {
3232
"@opentelemetry/api": "^1.3.0",
33-
"@opentelemetry/exporter-jaeger": "2.0.1",
34-
"@opentelemetry/exporter-zipkin": "2.0.1",
35-
"@opentelemetry/instrumentation": "0.203.0",
36-
"@opentelemetry/instrumentation-http": "0.203.0",
37-
"@opentelemetry/resources": "2.0.1",
38-
"@opentelemetry/sdk-trace-base": "2.0.1",
39-
"@opentelemetry/sdk-trace-node": "2.0.1",
33+
"@opentelemetry/exporter-jaeger": "2.1.0",
34+
"@opentelemetry/exporter-zipkin": "2.1.0",
35+
"@opentelemetry/instrumentation": "0.204.0",
36+
"@opentelemetry/instrumentation-http": "0.204.0",
37+
"@opentelemetry/resources": "2.1.0",
38+
"@opentelemetry/sdk-trace-base": "2.1.0",
39+
"@opentelemetry/sdk-trace-node": "2.1.0",
4040
"@opentelemetry/semantic-conventions": "^1.29.0"
4141
},
4242
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/http",

0 commit comments

Comments
 (0)