Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next] merge latest changes from main #4887

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
7fa2c84
chore(deps-dev): bump ip from 1.1.8 to 1.1.9 (#4495)
dependabot[bot] Mar 8, 2024
1b4999f
docs: spelling corrections (#4530)
10xLaCroixDrinker Mar 11, 2024
3a426e8
fix(exporters): use parseHeaders() to ensure header-values are not 'u…
pichlermarc Mar 14, 2024
aabd1a9
SBOM workflow using "npm sbom" (#4521)
martinkuba Mar 20, 2024
5489797
chore(changelog): move entry that accidentally ended up in a previous…
pichlermarc Mar 21, 2024
6547440
fix(sdk-logs): ensure default resource attributes are used as fallbac…
trentm Mar 21, 2024
f9a0d3e
refactor(instr-http): use exported strings for semconv (#4573)
JamieDanielson Mar 22, 2024
5fb65b4
perf(export): do not allocate arrays if resource has no pending async…
Samuron Mar 25, 2024
fec6286
Remove domain from the Events API (#4569)
martinkuba Mar 25, 2024
97af8e6
feat(sdk-node): add `HostDetector` as default resource detector (#4566)
maryliag Mar 25, 2024
f6a075b
Rename EventEmitter to EventLogger in the Events API (#4568)
martinkuba Mar 25, 2024
900b7d8
feat(opentelemetry-instrumentation-xhr): optionally ignore network ev…
MustafaHaddara Mar 28, 2024
1a0fb4f
docs(instr-http): document semantic conventions and attributes in use…
JamieDanielson Mar 28, 2024
9a5688e
chore(deps): update dependency chromedriver to v123 (#4577)
renovate-bot Mar 29, 2024
b418d36
perf(instrumentation-http): remove obvious temp allocations (#4576)
Samuron Mar 29, 2024
f3aedb7
chore(deps): bump express from 4.17.3 to 4.19.2 (#4591)
dependabot[bot] Mar 29, 2024
d66e1d7
Add `data` field to the Event interface (#4575)
martinkuba Apr 2, 2024
928796d
feat(sdk-metrics): added synchronous gauge to SDK (#4565)
clintonb Apr 2, 2024
5231aa2
chore: prepare release 1.23.0/0.50.0 (#4601)
pichlermarc Apr 3, 2024
e01f493
Fix invalid timings in span events (#4486)
Abinet18 Apr 3, 2024
b78d443
feat(otlp-transformer): consolidate scope/resource creation in transf…
pichlermarc Apr 4, 2024
c046867
fix(resources): ensure BrowserDetector does not think Node.js v21 is …
trentm Apr 4, 2024
0b6463e
feat(sdk-trace-base): log resource attributes in ConsoleSpanExporter …
pichlermarc Apr 10, 2024
7fb673c
feat(sdk-node): remove deprecated methods from NodeSDK (#4609)
pichlermarc Apr 10, 2024
19660db
test(expoerter-*-grpc): use RegExp to match Deadline Exceeded error (…
pichlermarc Apr 10, 2024
7a5db08
doc(instr-fetch): mention instr-undici for Node.js fetch() (#4624)
trentm Apr 11, 2024
b067aed
chore(instrumentation): remove accidental devDep on api-logs (#4627)
trentm Apr 11, 2024
3438777
fix(otlp-grpc-exporter-base): avoid TypeError on exporter shutdown (#…
pichlermarc Apr 11, 2024
583cc7c
feat(resources): implements `service.instance.id` (#4608)
maryliag Apr 15, 2024
fab27d5
chore(renovate): enable lock file maintainance (#4628)
pichlermarc Apr 15, 2024
da02c8d
fix: Don't use `require` to load `package.json` files (#4593)
timfish Apr 15, 2024
3b5eb23
feat(sdk-logs): make dropping attribute print message (#4614)
HyunnoH Apr 15, 2024
87e25c5
fix: ensure api is not dropped from workspaces in package-lock.json (…
pichlermarc Apr 15, 2024
7f82b80
Move xray propagator from contrib (no history) (#4603)
martinkuba Apr 16, 2024
0a750eb
refactor(instr-grpc): move to use SEMATTRS (#4633)
pahiz Apr 16, 2024
629bb83
chore(deps): lock file maintenance (#4634)
renovate-bot Apr 16, 2024
2610122
fix: revert modifications to Apache license (#4640)
svrnm Apr 16, 2024
0d6c456
fix(deps): update dependency axios to v1.6.0 [security] (#4639)
renovate-bot Apr 17, 2024
73fddf9
feat(sdk-node): add serviceInstanceIdDetector to NodeSDK (#4626)
maryliag Apr 17, 2024
99431df
feat!(instrumentation): remove moduleExports generic type from instru…
blumamir Apr 19, 2024
31eb60d
feat!(instrumentation): add patch and unpatch diag log messages (#4641)
blumamir Apr 19, 2024
3ab4f76
chore: prepare release 1.24.0/0.51.0 (#4650)
pichlermarc Apr 24, 2024
8079fd6
fix(resources): prevent circular import (resource -> detector -> reso…
pichlermarc Apr 26, 2024
141b457
fix(core): align inconsistent behavior of getEnv() and getEnvWithoutD…
pichlermarc Apr 26, 2024
8c12dd5
feat!: move serialization to `@opentelemetry/otlp-transformer` (#4542)
pichlermarc Apr 26, 2024
e44895f
feat(sdk-logs): emit resource attributes from ConsoleLogRecordExporte…
harelmo-lumigo Apr 26, 2024
d99e211
chore(deps): lock file maintenance (#4652)
renovate-bot Apr 26, 2024
4d6cf08
chore(deps): update dependency chromedriver to v124 (#4664)
renovate-bot Apr 29, 2024
e86470a
chore(deps): update dependency superagent to v9 (#4665)
renovate-bot Apr 29, 2024
5c84971
Add node 22 support (#4666)
dyladan Apr 30, 2024
753f0a6
fix(deps): update dependency import-in-the-middle to v1.7.4 (#4667)
renovate-bot Apr 30, 2024
157c811
feat(instrumentation): generic config type in instrumentation base (#…
blumamir May 2, 2024
9400e72
chore: update karma-webpack to v5.0.1, adapt tests (#4648)
pichlermarc May 2, 2024
b518e16
add AWS X-Ray Lambda propagator (#4554)
martinkuba May 3, 2024
75d88f7
feat(sdk-trace-node): support xray propagator (#4602)
anuraags May 3, 2024
1c5de7a
feat!: use serializers in browser exporters (#4581)
pichlermarc May 3, 2024
c503ff1
feat: allow adding links after span creation (#4536)
seemk May 6, 2024
a82d875
fix(exporter-metrics-otlp-grpc) Add explicit otlp-exporter-base depen…
AkselAllas May 6, 2024
46d79f9
feat(instrumentation): add util to execute span customization hook in…
blumamir May 6, 2024
5608bba
chore(deps): lock file maintenance (#4680)
renovate-bot May 6, 2024
ca027b5
doc: update legendecas affiliation (#4686)
legendecas May 8, 2024
4777631
chore: remove obsolete submodules (#4688)
legendecas May 11, 2024
3cfa783
feat(instrumentation): apply unwrap before wrap in base class (#4692)
blumamir May 13, 2024
3ca2f5b
chore(renovate): remove import-in-the-middle from the all-patch ignor…
pichlermarc May 13, 2024
15b3526
docs: align all supported versions to a common format (#4696)
blumamir May 13, 2024
1c6e8b2
fix(instrumentation)!: remove unused supportedVersions from Instrumen…
blumamir May 13, 2024
50bd460
docs(instrumentation): better docs for supportedVersions option (#4693)
blumamir May 13, 2024
3c8c29a
chore(deps): lock file maintenance (#4700)
renovate-bot May 13, 2024
a479ddc
chore: update versions to 1.24.1/0.51.1, carry over changelog adjustm…
pichlermarc May 15, 2024
806fa97
chore(deps): update dependency ts-loader to v9 (#4707)
renovate-bot May 15, 2024
4c01b33
feat(instrumentation): remove default value for config in base instru…
blumamir May 17, 2024
20182d8
chore: fix personal info in README (#4714)
blumamir May 17, 2024
d7fcc77
docs: enhanced description for instrumentations in package.json (#4715)
blumamir May 21, 2024
bac68fc
feat: add api release preparation scripts, github release creation sc…
pichlermarc May 21, 2024
e49c4c7
chore(lint): refactor Markdown linting to use markdownlint-cli2 (#4713)
trentm May 21, 2024
2d86717
docs: fix code example in README (#4726)
trentm May 22, 2024
4e778b1
docs: fix instrumentation-graphql package name in documentation (#4723)
pbnPierre May 22, 2024
c97f21f
Revert "feat(sdk-trace-node): support xray propagator (#4602)" (#4727)
pichlermarc May 23, 2024
d545521
fix(deps): update all patch versions (#4390)
renovate-bot May 23, 2024
195e5ef
chore(deps): update dependency @types/superagent to v8 (#4679)
renovate-bot May 23, 2024
182cbb5
chore(deps): update dependency chromedriver to v125 (#4719)
renovate-bot May 23, 2024
860e5d5
chore(deps): update dependency @types/sinon to v17 (#4718)
renovate-bot May 23, 2024
095003d
feat(api): added synchronous gauge (#4528)
clintonb May 27, 2024
969a16f
chore(renovate): set releaseWhen to conflicted to improve merge-queue…
pichlermarc May 27, 2024
4f6d7a4
feat(context-zone*): support zone.js 0.12.x (#4736)
maldago May 28, 2024
7238852
chore(deps): update all patch versions (#4734)
renovate-bot May 28, 2024
82b7526
chore(deps): remove unused cpx dependencies and update used ones to c…
pichlermarc May 28, 2024
634277f
fix(deps): remove protobufjs from grpc-base (otlp-transformer used in…
pichlermarc May 31, 2024
ecc88a3
refactor(core): Use (tree-shakeable) string constants for semconv (#4…
JohannesHuster May 31, 2024
ba7bdf5
refactor(sdk-trace-base): Use tree-shakeable string constants for sem…
JohannesHuster Jun 3, 2024
7e72f1c
refactor(sdk-trace-node): Use tree-shakeable string constants for sem…
JohannesHuster Jun 3, 2024
81b8474
refactor(sdk-trace-web): Use tree-shakeable string constants for semc…
JohannesHuster Jun 3, 2024
04dc781
chore(deps): update all patch versions (#4751)
renovate-bot Jun 3, 2024
55c6c01
refactor(shim-opentracing): Use tree-shakeable string constants for s…
JohannesHuster Jun 3, 2024
95edbd9
feat(instrumentation)!: simplify `registerInstrumentations()` API (#4…
pichlermarc Jun 3, 2024
20074d8
refactor(examples/http): use new exported string constants for semcon…
Zen-cronic Jun 4, 2024
0ce7d94
refactor(examples/https): use new exported string constants for semco…
Zen-cronic Jun 4, 2024
c66b65f
chore(exporters): updated deprecated semconv to use exported strings …
JamieDanielson Jun 4, 2024
1ef6027
docs(instrumentation-http): cleanup readme semconv keys (#4754)
JamieDanielson Jun 4, 2024
be9d11c
chore(resources): update deprecated semconv to use exported strings (…
JamieDanielson Jun 4, 2024
315239d
refactor(instrumentation-xhr): use exported strings for semantic attr…
Prashansa-K Jun 4, 2024
106fa9b
fix: Update `import-in-the-middle` (#4745)
timfish Jun 5, 2024
9d3bc18
chore: move flarna from approver to emeritus (#4757)
Flarna Jun 5, 2024
7c808e3
add Events SDK (#4629)
martinkuba Jun 5, 2024
de50349
refactor(examples/opentracing-shim): use new exported string constant…
Zen-cronic Jun 5, 2024
9cd2021
refactor(examples/otlp-exporter-node): use new exported string consta…
Zen-cronic Jun 5, 2024
97f372b
refactor(experimental/examples/opencensus-shim): use new exported str…
Zen-cronic Jun 5, 2024
929e345
refactor(examples/grpc-js): use new exported string constants for sem…
Zen-cronic Jun 5, 2024
97d0ec5
refactor(examples/basic-tracer-node): use new exported string constan…
Zen-cronic Jun 5, 2024
957fa3b
refactor(examples/esm-http-ts): use new exported string constants for…
Zen-cronic Jun 5, 2024
26974c4
chore: prepare release API 1.9.0/Core 1.25.0/Experimental 0.52.0 (#4677)
pichlermarc Jun 5, 2024
c4d3351
fix(sdk-logs): adapt versions for release (#4769)
pichlermarc Jun 5, 2024
6bb2f16
chore: add @david-luna to approvers (#4766)
pichlermarc Jun 5, 2024
6481396
chore(deps): update all patch versions to v7.24.7 (#4772)
renovate-bot Jun 6, 2024
bd05393
refactor(sdk-node): Use tree-shakeable string constants for semconv (…
JohannesHuster Jun 7, 2024
fd911fb
chore: move haddasbronfman from approver to emeritus (#4765)
pichlermarc Jun 7, 2024
2e42181
refactor(instr-fetch): move fetch to use SEMATRR (#4632)
pahiz Jun 8, 2024
01664dd
tests: regenerate recently-expired test TLS certs (#4777)
trentm Jun 10, 2024
c9ea5f2
chore(deps): lock file maintenance (#4780)
renovate-bot Jun 10, 2024
05e2699
fix(sdk-node): register context manager if no tracer options are prov…
pichlermarc Jun 11, 2024
c280a08
fix(deps): update dependency @grpc/grpc-js to v1.10.9 [security] (#4782)
renovate-bot Jun 11, 2024
b5409d7
refactor(otlp-transformer): use explicit exports (#4785)
pichlermarc Jun 12, 2024
4885468
refactor(context-async-hooks): use explicit exports (#4786)
pichlermarc Jun 12, 2024
812c774
refactor(context-zone-peer-dep): use explicit exports (#4787)
pichlermarc Jun 13, 2024
4fa7c13
refactor(examples/opentelemetry-web): use new exported string constan…
Zen-cronic Jun 14, 2024
dd83751
docs: change to SEMRESATTRS_SERVICE_NAME (#4797)
danstarns Jun 18, 2024
9e421f6
docs(exporter-logs-otlp-http): change OTLPLogsExporter to OTLPLogExpo…
falsyvalues Jun 18, 2024
3cbc9c7
docs: add SimpleSpanProcessor warning (#4798)
danstarns Jun 18, 2024
c07aa53
fix: Update `import-in-the-middle` (#4806)
timfish Jun 19, 2024
1041ed4
chore(deps): lock file maintenance (#4801)
renovate-bot Jun 19, 2024
81f78a6
chore(deps): update dependency chromedriver to v126 (#4800)
renovate-bot Jun 19, 2024
cdd5284
feat(instrumentation): Use a caret version for `import-in-the-middle`…
timfish Jun 19, 2024
0608f40
chore: prepare release 1.25.1/0.52.1 (#4809)
pichlermarc Jun 20, 2024
86019e0
feat: add release-pr update chores as scripts to package.json (#4793)
pichlermarc Jun 21, 2024
08628bc
chore: add @trentm to maintainers (#4813)
pichlermarc Jun 24, 2024
73fad98
chore(deps): update all patch versions (#4819)
renovate-bot Jun 24, 2024
3fdadd5
refactor: reduce and simplify usage of getEnv() (#4799)
danstarns Jun 25, 2024
f99e7d9
chore: add @maryliag to triagers (#4821)
pichlermarc Jun 25, 2024
01a2c35
chore: add @JamieDanielson to maintainers (#4824)
pichlermarc Jun 26, 2024
fbb1b36
fix(deps): update all patch versions (#4822)
renovate-bot Jul 1, 2024
a037f84
chore: drop ts-mocha for mocha and ts-node (#4840)
pichlermarc Jul 3, 2024
0f6363a
fix(instrumentation)!:remove unused description property from interfa…
blumamir Jul 4, 2024
539d942
docs(opentelemetry-browser-detector): Use tree-shakeable string const…
JohannesHuster Jul 5, 2024
54b14fb
docs(opentelemtry-instrumentation): fix reversed jsdoc comment (#4855)
Fox32 Jul 9, 2024
8d88c36
feat: include instrumentation scope info in console span and log reco…
blumamir Jul 17, 2024
a6020fb
deps(opentelemetry-instrumentation): Bump shimmer types to 1.2.0 (#4865)
lforst Jul 17, 2024
d4035eb
fix(instrumentation-http): Ensure instrumentation of `http.get` and `…
trentm Jul 24, 2024
34003c9
feat(http): Allow to opt-out of instrumenting incoming/outgoing reque…
mydea Jul 25, 2024
f2039e8
chore(deps): update all patch versions (#4860)
renovate-bot Jul 29, 2024
3460a8c
chore(deps): update dependency chromedriver to v127 (#4883)
renovate-bot Jul 29, 2024
d91dbe1
feat(exporters)!: use transport interface in node.js exporters (#4743)
pichlermarc Jul 29, 2024
3f2c707
fix(sdk-node): avoid spurious diag errors for unknown OTEL_NODE_RESOU…
trentm Jul 30, 2024
3d66bcb
chore(deps): update dependency karma to v6.4.4 (#4885)
renovate-bot Jul 30, 2024
1cf1939
feat(otlp-transformer): Do not limit `@opentelemetry/api` upper range…
mydea Jul 30, 2024
08942ba
chore(deps): update dependency babel-plugin-istanbul to v7 (#4852)
renovate-bot Jul 30, 2024
154155f
Merge branch 'main' into next-main-2024-07-30
pichlermarc Jul 30, 2024
eee78fa
chore: clean up merge
pichlermarc Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ body:
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');
const { ConsoleSpanExporter } = require('@opentelemetry/sdk-trace-base');
const { Resource } = require('@opentelemetry/resources');
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
const { SEMRESATTRS_SERVICE_NAME } = require('@opentelemetry/semantic-conventions');

// configure the SDK to export telemetry data to the console
// enable all auto-instrumentations from the meta package
const traceExporter = new ConsoleSpanExporter();
const sdk = new opentelemetry.NodeSDK({
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'my-service',
[SEMRESATTRS_SERVICE_NAME]: 'my-service',
}),
traceExporter,
instrumentations: [getNodeAutoInstrumentations()]
Expand Down
26 changes: 13 additions & 13 deletions .github/repository-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ No changes

## Collaborators and Teams

* There is currently no `javascript-triagers` role
* `javascript-maintainers` has `Admin` permission
- There is currently no `javascript-triagers` role
- `javascript-maintainers` has `Admin` permission

## Branches

## Branch protection rules

### `main`

* Uncheck "Restrict who can push to matching branches"
* Check "Require merge queue"
* Build concurrency: 5
* Minimum pull requests to merge: 1 or after 5 minutes
* Maximum pull requests to merge: 5
* Check "Only merge non-failing pull requests"
* Status check timeout: 60 minutes
- Uncheck "Restrict who can push to matching branches"
- Check "Require merge queue"
- Build concurrency: 5
- Minimum pull requests to merge: 1 or after 5 minutes
- Maximum pull requests to merge: 5
- Check "Only merge non-failing pull requests"
- Status check timeout: 60 minutes

### `dependabot/**/**`

Expand All @@ -36,10 +36,10 @@ Our dependencies are managed by a bot which creates PRs from a fork.

This is a special branch which we use to publish the automatically generated docs.
It is exempt from most protections.
* "Allow force pushes from everyone" (requires write permission)

- "Allow force pushes from everyone" (requires write permission)

## Pages

* Source: Deploy from a branch
* Branch: `gh-pages` `/ (root)`
- Source: Deploy from a branch
- Branch: `gh-pages` `/ (root)`
17 changes: 1 addition & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,14 @@ jobs:
package-lock.json
node-version: '20'

- name: Lint changelog file
uses: avto-dev/markdown-lint@v1
with:
# Commenting due to
# https://github.com/avto-dev/markdown-lint/blob/aab9be9823fcd706f6da3e6ad6c64874c23fbd4c/lint/rules/changelog.js#L51-L71
# TODO: adhere to, or overwrite above rule and uncomment rules
# rules: "/lint/rules/changelog.js"
config: "/lint/config/changelog.yml"
args: "./CHANGELOG.md"

- name: Lint markdown files
uses: avto-dev/markdown-lint@v1
with:
args: "./**/*.md"
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'

- name: Bootstrap
run: npm ci

- name: Lint
run: |
npm run lint
npm run lint:examples
npm run lint:markdown

- name: Lint doc files
run: |
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: SBOM
on:
release:
types: [published]

permissions: read-all

jobs:
generate-sboms:
runs-on: ubuntu-latest
env:
NPM_CONFIG_UNSAFE_PERM: true
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- run: npm install -g npm@latest

- name: Bootstrap
run: npm ci

- name: Generate SBOM for core packages
if: ${{ ! startsWith(github.ref, 'refs/tags/experimental') && ! startsWith(github.ref, 'refs/tags/api') }}
run: |
for dir in $(find packages -mindepth 1 -maxdepth 1 -type d)
do
dir_name=$(basename "$dir")
echo "Generating SBOM for $dir_name"
npm sbom --sbom-format=spdx --legacy-peer-deps --workspace ${dir} > "opentelemetry-js_${dir_name}.spdx.json"
done

- name: Generate SBOM for the API package
if: startsWith(github.ref, 'refs/tags/api/')
run: |
npm sbom --sbom-format=spdx --legacy-peer-deps --workspace api > opentelemetry-js_api.spdx.json

- name: Generate SBOMs for experimental packages
if: startsWith(github.ref, 'refs/tags/experimental/')
run: |
for dir in $(find experimental/packages -mindepth 1 -maxdepth 1 -type d)
do
dir_name=$(basename "$dir")
echo "Generating SBOM for $dir_name"
npm sbom --sbom-format=spdx --legacy-peer-deps --workspace ${dir} > "opentelemetry-js_${dir_name}.spdx.json"
done

- name: Zip all SBOM files
run: |
zip sbom.zip *.spdx.json

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: SBOM.zip
path: ./sbom.zip

add-release-artifact:
needs: generate-sboms
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download artifact from generate-sboms
uses: actions/download-artifact@v4
with:
name: SBOM.zip
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./sbom.zip
asset_name: SBOM.zip
asset_content_type: application/zip
5 changes: 2 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
node_version:
- "18"
- "20"
- "22"
runs-on: ubuntu-latest
env:
NPM_CONFIG_UNSAFE_PERM: true
Expand Down Expand Up @@ -130,8 +131,6 @@ jobs:
- "8"
- "10"
- "12"
- "14"
- "16"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -148,7 +147,7 @@ jobs:
working-directory: ./api
run: |
npm install --ignore-scripts
npm install @types/mocha@^7 mocha@^7 ts-loader@^8 ts-mocha@^8
npm install @types/mocha@^7 mocha@^7 ts-loader@^8
node ../scripts/version-update.js
npx tsc --build tsconfig.json tsconfig.esm.json

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ package.json.lerna_backup

# non-aggregated benchmark results
.benchmark-results.txt

# release notes for release creation
.tmp/
7 changes: 2 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "experimental/packages/otlp-grpc-exporter-base/protos"]
path = experimental/packages/otlp-grpc-exporter-base/protos
url = https://github.com/open-telemetry/opentelemetry-proto.git
[submodule "experimental/packages/otlp-proto-exporter-base/protos"]
path = experimental/packages/otlp-proto-exporter-base/protos
[submodule "experimental/packages/otlp-transformer/protos"]
path = experimental/packages/otlp-transformer/protos
url = https://github.com/open-telemetry/opentelemetry-proto.git
15 changes: 15 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// https://github.com/DavidAnson/markdownlint-cli2#markdownlint-cli2jsonc
{
"config": {
// https://github.com/DavidAnson/markdownlint/blob/main/README.md#rules--aliases
"MD013": false,
"MD024": false,
"MD033": false,
"MD041": false,
"MD026": false,
"MD004": { "style": "dash" } // ul-style
},
"gitignore": true,
"noBanner": true,
"noProgress": true
}
7 changes: 0 additions & 7 deletions .markdownlint.json

This file was deleted.

1 change: 1 addition & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require: 'ts-node/register'
82 changes: 80 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable MD004 -->
# CHANGELOG

All notable changes to this project will be documented in this file.
Expand All @@ -15,14 +16,90 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/

### :rocket: (Enhancement)

* feat: include instrumentation scope info in console span and log record exporters [#4848](https://github.com/open-telemetry/opentelemetry-js/pull/4848) @blumamir

### :bug: (Bug Fix)

* fix(sdk-metrics): increase the depth of the output to the console such that objects in the metric are printed fully to the console [#4522](https://github.com/open-telemetry/opentelemetry-js/pull/4522) @JacksonWeber
* fix(sdk-node): avoid spurious diag errors for unknown OTEL_NODE_RESOURCE_DETECTORS values [#4879](https://github.com/open-telemetry/opentelemetry-js/pull/4879) @trentm
* deps(opentelemetry-instrumentation): Bump `shimmer` types to 1.2.0 [#4865](https://github.com/open-telemetry/opentelemetry-js/pull/4865) @lforst

### :books: (Refine Doc)

### :house: (Internal)

* refactor: Simplify the code for the `getEnv` function [#4799](https://github.com/open-telemetry/opentelemetry-js/pull/4799) @danstarns

## 1.25.1

### :books: (Refine Doc)

* refactor(examples): added usage of @opentelemetry/semantic-conventions and @opentelemetry/resources to the examples in examples/opentelemetry-web for maintaining consistency across all examples. [#4764](https://github.com/open-telemetry/opentelemetry-js/pull/4764) @Zen-cronic

### :house: (Internal)

* refactor(context-zone-peer-dep): use explicit exports [#4785](https://github.com/open-telemetry/opentelemetry-js/pull/4787) @pichlermarc
* refactor(context-async-hooks): use explicit exports [#4785](https://github.com/open-telemetry/opentelemetry-js/pull/4786) @pichlermarc

## 1.25.0

### :rocket: (Enhancement)

* feat: support node 22 [#4666](https://github.com/open-telemetry/opentelemetry-js/pull/4666) @dyladan
* feat(context-zone*): support zone.js 0.12.x [#4376](https://github.com/open-telemetry/opentelemetry-js/pull/4736) @maldago
* refactor(core): Use tree-shakeable string constants for semconv [#4739](https://github.com/open-telemetry/opentelemetry-js/pull/4739) @JohannesHuster
* refactor(shim-opentracing): Use tree-shakeable string constants for semconv [#4746](https://github.com/open-telemetry/opentelemetry-js/pull/4746) @JohannesHuster
* refactor(sdk-trace-web): Use tree-shakeable string constants for semconv [#4747](https://github.com/open-telemetry/opentelemetry-js/pull/4747) @JohannesHuster
* refactor(sdk-trace-node): Use tree-shakeable string constants for semconv [#4748](https://github.com/open-telemetry/opentelemetry-js/pull/4748) @JohannesHuster
* refactor(sdk-trace-base): Use tree-shakeable string constants for semconv [#4749](https://github.com/open-telemetry/opentelemetry-js/pull/4749) @JohannesHuster
* refactor(resources): update deprecated semconv to use exported strings [#4755](https://github.com/open-telemetry/opentelemetry-js/pull/#4755) @JamieDanielson
* refactor(exporters): update deprecated semconv to use exported strings [#4756](https://github.com/open-telemetry/opentelemetry-js/pull/#4756) @JamieDanielson

### :books: (Refine Doc)

* refactor(examples): use new exported string constants for semconv in examples/esm-http-ts [#4758](https://github.com/open-telemetry/opentelemetry-js/pull/4758) @Zen-cronic
* refactor(examples): use new exported string constants for semconv in examples/basic-tracer-node [#4759](https://github.com/open-telemetry/opentelemetry-js/pull/4759#pull) @Zen-cronic
* refactor(examples): use new exported string constants for semconv in examples/http [#4750](https://github.com/open-telemetry/opentelemetry-js/pull/4750) @Zen-cronic
* refactor(examples): use new exported string constants for semconv in examples/grpc-js [#4760](https://github.com/open-telemetry/opentelemetry-js/pull/4760#pull) @Zen-cronic
* refactor(examples): use new exported string constants for semconv in examples/otlp-exporter-node [#4762](https://github.com/open-telemetry/opentelemetry-js/pull/4762) @Zen-cronic
* refactor(examples): use new exported string constants for semconv in examples/opentracing-shim [#4761](https://github.com/open-telemetry/opentelemetry-js/pull/4761) @Zen-cronic

## 1.24.1

### :bug: (Bug Fix)

* fix(core): align inconsistent behavior of `getEnv()` and `getEnvWithoutDefaults()` when a `process` polyfill is used [#4648](https://github.com/open-telemetry/opentelemetry-js/pull/4648) @pichlermarc
* `getEnvWithoutDefaults()` would use `process.env` if it was defined when running in a browser, while `getEnv()` would always use `_globalThis`. Now both use `_globalThis` when running in a browser.
* fix(resources): prevent circular import (resource -> detector -> resource -> ...) [#4653](https://github.com/open-telemetry/opentelemetry-js/pull/4653) @pichlermarc
* fixes a circular import warning which would appear in rollup when bundling `@opentelemetry/resources`
* fix(exporter-metrics-otlp-grpc): add explicit otlp-exporter-base dependency to exporter-metrics-otlp-grpc [#4678](https://github.com/open-telemetry/opentelemetry-js/pull/4678) @AkselAllas

## 1.24.0

### :rocket: (Enhancement)

* feat(sdk-trace-base): log resource attributes in ConsoleSpanExporter [#4605](https://github.com/open-telemetry/opentelemetry-js/pull/4605) @pichlermarc
* feat(propagator-aws-xray): moved AWS Xray propagator from contrib [4603](https://github.com/open-telemetry/opentelemetry-js/pull/4603) @martinkuba
* feat(resources): new experimental detector ServiceInstanceIdDetectorSync that sets the value for `service.instance.id` as random UUID. [#4608](https://github.com/open-telemetry/opentelemetry-js/pull/4608) @maryliag

### :bug: (Bug Fix)

* fix(sdk-trace-web): fix invalid timings in span events [#4486](https://github.com/open-telemetry/opentelemetry-js/pull/4486) @Abinet18
* fix(resources): ensure BrowserDetector does not think Node.js v21 is a browser [#4561](https://github.com/open-telemetry/opentelemetry-js/issues/4561) @trentm
* fix(core): align inconsistent behavior of `getEnv()` and `getEnvWithoutDefaults()` when a `process` polyfill is used [#4648](https://github.com/open-telemetry/opentelemetry-js/pull/4648) @pichlermarc
* `getEnvWithoutDefaults()` would use `process.env` if it was defined when running in a browser, while `getEnv()` would always use `_globalThis`. Now both use `_globalThis` when running in a browser.

## 1.23.0

### :rocket: (Enhancement)

* perf(sdk-trace-base): do not allocate arrays if resource has no pending async attributes [#4576](https://github.com/open-telemetry/opentelemetry-js/pull/4576) @Samuron
* feat(sdk-metrics): added experimental synchronous gauge to SDK [#4565](https://github.com/open-telemetry/opentelemetry-js/pull/4565) @clintonb
* this change will become user-facing in an upcoming release

### :bug: (Bug Fix)

* fix(sdk-metrics): increase the depth of the output to the console such that objects in the metric are printed fully to the console [#4522](https://github.com/open-telemetry/opentelemetry-js/pull/4522) @JacksonWeber

## 1.22.0

### :rocket: (Enhancement)
Expand All @@ -31,6 +108,7 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/
* feat(instrumentation): Make `init()` method public [#4418](https://github.com/open-telemetry/opentelemetry-js/pull/4418)
* feat(context-zone-peer-dep, context-zone): support zone.js 0.13.x, 0.14.x [#4469](https://github.com/open-telemetry/opentelemetry-js/pull/4469) @pichlermarc
* chore: Semantic Conventions export individual strings [4185](https://github.com/open-telemetry/opentelemetry-js/issues/4185)
* feat(sdk-trace-base): allow adding span links after span creation [#4536](https://github.com/open-telemetry/opentelemetry-js/pull/4536) @seemk

### :bug: (Bug Fix)

Expand Down Expand Up @@ -1882,7 +1960,7 @@ No changes
* `opentelemetry-api`, `opentelemetry-exporter-prometheus`, `opentelemetry-metrics`
* [#1137](https://github.com/open-telemetry/opentelemetry-js/pull/1137) Batch observer ([@obecny](https://github.com/obecny))
* `opentelemetry-exporter-collector`
* [#1256](https://github.com/open-telemetry/opentelemetry-js/pull/1256) feat: [Collector Metric Exporter][1/x] Rename CollectorExporter to CollectorTraceExporter ([@davidwitten](https://github.com/davidwitten))
* [#1256](https://github.com/open-telemetry/opentelemetry-js/pull/1256) feat: Collector Metric Exporter [1/x] Rename CollectorExporter to CollectorTraceExporter ([@davidwitten](https://github.com/davidwitten))

### :rocket: (Enhancement)

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG_NEXT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- markdownlint-disable MD004 -->

## 2.0

### :boom: Breaking Change
Expand Down
9 changes: 8 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ An entry into `CHANGELOG.md` or `experimental/CHANGELOG.md` is required for the
- Changes to default settings
- New components being added

It is reasonable to omit an entry to the changelog under these circuimstances:
It is reasonable to omit an entry to the changelog under these circumstances:

- Updating test to remove flakiness or improve coverage
- Updates to the CI/CD process
Expand Down Expand Up @@ -247,6 +247,13 @@ cd packages/opentelemetry-module-name
npm run lint:fix
```

Similarly, Markdown files (such as README.md files) can be linted:

```sh
npm run lint:markdown
npm run lint:markdown:fix # can automatically fix some Markdown rules
```

### Generating docs

We use [typedoc](https://www.npmjs.com/package/typedoc) to generate the api documentation.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# OpenTelemetry JavaScript SDK 2.0

> [!WARNING]
> [!WARNING]
> You have found the working branch for the work in progress 2.0 SDK.
> If you are a user, you are probably looking for the 1.x SDK on the main branch.
Loading
Loading