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 changes from main #4471

Merged
merged 77 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
079c1f5
Add Trent to approvers (#4311)
dyladan Nov 20, 2023
b3a539d
chore(renovate): require dashboard approval for lerna updates (#4276)
pichlermarc Nov 22, 2023
8067d97
chore(ci): install semver globally to speed up "peer-api" workflow (#…
Nov 23, 2023
38db748
fix(ci): remove token setup via environment variable from .npmrc (#4329)
pichlermarc Nov 29, 2023
762a65a
fix(instrumentation-http): resume responses when there is no response…
dyladan Nov 29, 2023
f654636
feat: add script to update changelogs on release preparation (#4315)
pichlermarc Nov 30, 2023
bf8ee62
Fix event name
dyladan Nov 30, 2023
470a2bf
test: make rawRequest HTTP-compliant
dyladan Nov 30, 2023
1dda06a
Merge branch 'main' into node-20-test
dyladan Nov 30, 2023
3f96f1f
Merge branch 'main' into node-20-leak
dyladan Nov 30, 2023
cc4ff2d
Merge pull request #4332 from dyladan/node-20-leak
dyladan Nov 30, 2023
0a52166
Merge branch 'main' into node-20-test
dyladan Nov 30, 2023
593d220
Merge pull request #4335 from dyladan/node-20-test
dyladan Nov 30, 2023
d0d9581
Add node 20 to test matrix
dyladan Nov 30, 2023
c0034ce
Enable old hash functions on 20
dyladan Nov 30, 2023
3e2fcda
Fix esm handling for iitm node 20
dyladan Nov 30, 2023
317c93d
Use err.code to make test more reliable
dyladan Nov 30, 2023
0b7dc46
Changelog
dyladan Nov 30, 2023
c4e75fb
nit: single import
dyladan Nov 30, 2023
a81e0ea
Remove unused files
dyladan Nov 30, 2023
1447ad5
Add v20 to supported runtimes
dyladan Dec 1, 2023
6dd075c
Merge pull request #4336 from dyladan/test-20
dyladan Dec 1, 2023
9e94536
ci: add npm cache in actions/setup-node (#4271)
lyzlisa Dec 1, 2023
dcf93e8
feat(sdk-logs): add droppedAttributesCount field to ReadableLogRecord…
HyunnoH Dec 5, 2023
104a5e8
fix(api-logs): allow passing in TimeInput for LogRecord (#4345)
seemk Dec 6, 2023
4daa264
fix: programmatic url and headers take precedence in metric exporters…
Vunovati Dec 6, 2023
5b0fb7b
fix(instrumentation-http): do not mutate given headers object for out…
trentm Dec 6, 2023
4e77c1d
chore(deps): update actions/stale action to v9 (#4353)
renovate-bot Dec 12, 2023
9349c68
fix(deps): update dependency import-in-the-middle to v1.6.0 (#4357)
renovate-bot Dec 12, 2023
237c757
chore(deps): update all patch versions (#4306)
renovate-bot Dec 12, 2023
6be10fb
chore(ci): use node 20 in lint workflow (#4359)
pichlermarc Dec 12, 2023
dddab06
chore(deps): update dependency linkinator to v6 (#4237)
renovate-bot Dec 12, 2023
af4f7a9
fix(otlp-exporter-base): decrease default concurrency limit to 30 (#4…
pichlermarc Dec 13, 2023
4fe1ae8
chore(deps): use actions/checkout >4 instead of 4.0.0 exactly (#4361)
pichlermarc Dec 13, 2023
1cbaaf0
chore(deps): update webpack to latest (#4340)
dyladan Dec 13, 2023
d286bf6
fix(deps): update dependency import-in-the-middle to v1.7.1 (#4367)
renovate-bot Dec 14, 2023
02de4ab
chore(deps): update dependency @types/webpack to v5 (#4368)
renovate-bot Dec 14, 2023
d3c311a
chore: prepare release 1.19.0/0.46.0 (#4358)
pichlermarc Dec 14, 2023
d828041
fix(sdk-logs): await async resources in log processors (#4349)
hectorhdzg Dec 15, 2023
3e59291
feat(sdk-trace-base): improve log messages when dropping span events …
mkubliniak Dec 15, 2023
37add77
fix(ci): ensure deploy workflow does not override benchmark data (#4376)
pichlermarc Dec 18, 2023
3cf2cf6
fix(instrumentation): bump import-in-the-middle to 1.7.2 (#4379)
chentsulin Dec 19, 2023
42aaae0
chore(deps): update dependency chromedriver to v120 (#4374)
renovate-bot Dec 19, 2023
a512494
perf: remove unnecessary base64 encode+decode from OTLP export (#4343)
seemk Dec 19, 2023
f4b681d
fix(instrumentation): use caret range on import-in-the-middle (#4380)
pichlermarc Dec 20, 2023
0206181
chore(deps): update github/codeql-action action to v3 (#4391)
renovate-bot Jan 3, 2024
b36ab12
fix(instrumentation): do not import 'path' in browser runtimes (#4386)
pichlermarc Jan 3, 2024
ae0a3c5
fix(exporter-logs-otlp-proto): programatic headers take precedence ov…
Vunovati Jan 3, 2024
b7e3d44
chore(deps): bump follow-redirects from 1.15.3 to 1.15.4 (#4411)
dependabot[bot] Jan 12, 2024
5700853
chore: prepare release 1.20.0/0.47.0 (#4410)
pichlermarc Jan 15, 2024
6898a34
fix(sdk-trace-base): ensure attribute value length limit is enforced …
pichlermarc Jan 15, 2024
71ef1b1
feat(SugaredTracer): add draft of sugaredTracer (#3317)
secustor Jan 16, 2024
bf8714e
chore(opentelemetry-context-zone-peer-dep): support zone.js ^v0.13.0 …
rodgerbrennan Jan 17, 2024
2a3c264
refactor(core): drop unnecessary assignment of HOSTNAME (#4421)
pichlermarc Jan 18, 2024
43e598e
test: transpile zone.js products in test (#4423)
legendecas Jan 18, 2024
0f6518d
feat(sdk-metrics): deprecate MeterProvider.addMetricReader() in favor…
pichlermarc Jan 24, 2024
0635ab1
fix(sdk-trace-base): Export processed spans while exporter failed (#4…
Zirak Jan 24, 2024
8648313
fix(instrumentation)!: pin [email protected] (#4441)
pichlermarc Jan 25, 2024
df63272
fix(exporter-logs-otlp-*): set User-Agent header (#4398)
Vunovati Jan 25, 2024
bf4d553
refactor(exporter-prometheus): promisify prometheus tests (#4431)
legendecas Jan 25, 2024
5afbcdb
docs: add observableGauge to the prometheus experimental example (#4267)
Lp-Francois Jan 25, 2024
3711990
fix(instrumentation-fetch): compatibility with Map inputs for request…
rdeavila94 Jan 25, 2024
828f2ed
chore: prepare release 1.21.0/0.48.0 (#4442)
pichlermarc Jan 26, 2024
4655895
feat(add-aggregation-selector-option-to-otlp-metric-exporter) (#4409)
AkselAllas Jan 29, 2024
c98a5d3
chore: remove checked in auto-generated version.js files (#4448)
pichlermarc Jan 31, 2024
ac75b70
fix(api): fix unreachable @opentelemetry/api/experimental entry (#4446)
legendecas Jan 31, 2024
efa6307
fix(sdk-node): Allow Defining Sampler with Exporter in Env (#4394)
JacksonWeber Jan 31, 2024
2df6310
refactor(instrumentation-grpc): clean up remnants of 'grpc' package i…
pichlermarc Jan 31, 2024
72c60f1
feat(node-sdk): add spanProcessors option (#4454)
naseemkullah Feb 5, 2024
0229434
feat(instrumentation): make InstrumentationAbstract.init public (#4418)
drewcorlin1 Feb 5, 2024
588d8ad
Allow LoggerProvider to be specified in Instrumentations (#4314)
hectorhdzg Feb 6, 2024
6d276f4
fix: handle zero bucket counts in exponential histogram merge (#4459)
mwear Feb 6, 2024
f6712fd
fix(sdk-metrics): ignore NaN value recordings for histograms (#4455)
pichlermarc Feb 6, 2024
63845ec
fix(sdk-metrics): allow single bucket histograms (#4456)
pichlermarc Feb 6, 2024
f86251d
docs: shorten readme sections (#4460)
legendecas Feb 6, 2024
b7c5382
Merge branch 'main' into next-main-02-09
pichlermarc Feb 9, 2024
19b433e
chore: fix conflicts
pichlermarc Feb 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: javascript

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
12 changes: 7 additions & 5 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
cache: 'npm'
cache-dependency-path: |
package-lock.json
node-version: '18'
node-version: '20'

- name: Install and Build 🔧
run: |
Expand All @@ -29,8 +29,10 @@ jobs:
NODE_OPTIONS: --max-old-space-size=6144

- name: Deploy Documentation 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs # The folder the action should deploy.
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
# ensure we don't override benchmark data
clean-exclude: |
benchmarks/**
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,54 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/

### :rocket: (Enhancement)

* feat(sdk-metrics): allow single bucket histograms [#4456](https://github.com/open-telemetry/opentelemetry-js/pull/4456) @pichlermarc
* feat(instrumentation): Make `init()` method public [#4418](https://github.com/open-telemetry/opentelemetry-js/pull/4418)

### :bug: (Bug Fix)

* fix(sdk-metrics): handle zero bucket counts in exponential histogram merge [#4459](https://github.com/open-telemetry/opentelemetry-js/pull/4459) @mwear
* fix(sdk-metrics): ignore `NaN` value recordings in Histograms [#4455](https://github.com/open-telemetry/opentelemetry-js/pull/4455) @pichlermarc
* fixes a bug where recording `NaN` on a histogram would result in the sum of bucket count values not matching the overall count
* fix(sdk-metrics): allow single bucket histograms [#4456](https://github.com/open-telemetry/opentelemetry-js/pull/4456) @pichlermarc
* fixes a bug where `Meter.createHistogram()` with the advice `explicitBucketBoundaries: []` would throw

### :books: (Refine Doc)

* docs: shorten readme sections [#4460](https://github.com/open-telemetry/opentelemetry-js/pull/4460) @legendecas

### :house: (Internal)

## 1.21.0

### :rocket: (Enhancement)

* feat(sdk-metrics): add constructor option to add metric readers [#4427](https://github.com/open-telemetry/opentelemetry-js/pull/4427) @pichlermarc
* deprecates `MeterProvider.addMetricReader()` please use the constructor option `readers` instead.

### :bug: (Bug Fix)

* fix(sdk-trace-base): ensure attribute value length limit is enforced on span creation [#4417](https://github.com/open-telemetry/opentelemetry-js/pull/4417) @pichlermarc
* fix(sdk-trace-base): Export processed spans while exporter failed [#4287](https://github.com/open-telemetry/opentelemetry-js/pull/4287) @Zirak

### :house: (Internal)

* chore(opentelemetry-context-zone-peer-dep): support zone.js ^v0.13.0 [#4320](https://github.com/open-telemetry/opentelemetry-js/pull/4320)
* refactor(core): drop unnecessary assignment of HOSTNAME [#4421](https://github.com/open-telemetry/opentelemetry-js/pull/4421) @pichlermarc
* test(opentelemetry-context-zone-peer-dep): transpile zone.js in tests [#4423](https://github.com/open-telemetry/opentelemetry-js/pull/4423) @legendecas

## 1.20.0

### :rocket: (Enhancement)

* perf(otlp-transformer): skip unnecessary base64 encode of span contexts [#4343](https://github.com/open-telemetry/opentelemetry-js/pull/4343) @seemk
* feat(sdk-trace-base): improve log messages when dropping span events [#4223](https://github.com/open-telemetry/opentelemetry-js/pull/4223) @mkubliniak

## 1.19.0

### :rocket: (Enhancement)

* feat: add node 20 support [#4336](https://github.com/open-telemetry/opentelemetry-js/pull/4336) @dyladan

### :house: (Internal)

* chore: type reference on zone.js [#4257](https://github.com/open-telemetry/opentelemetry-js/pull/4257) @legendecas
Expand Down
3 changes: 3 additions & 0 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

## Unreleased

* feat(api): add SugaredTracer for functions not defined in the spec
* fix(api): fix unreachable @opentelemetry/api/experimental entry [#4446](https://github.com/open-telemetry/opentelemetry-js/pull/4446) @legendecas

## 1.7.0

### :rocket: (Enhancement)
Expand Down
18 changes: 16 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
"./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js",
"./build/src/platform/index.js": "./build/src/platform/browser/index.js"
},
"exports": {
".": {
"module": "./build/esm/index.js",
"esnext": "./build/esnext/index.js",
"types": "./build/src/index.d.ts",
"default": "./build/src/index.js"
},
"./experimental": {
"module": "./build/esm/experimental/index.js",
"esnext": "./build/esnext/experimental/index.js",
"types": "./build/src/experimental/index.d.ts",
"default": "./build/src/experimental/index.js"
}
},
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
Expand Down Expand Up @@ -69,7 +83,7 @@
"@types/mocha": "10.0.6",
"@types/node": "18.6.5",
"@types/sinon": "10.0.20",
"@types/webpack": "4.41.38",
"@types/webpack": "5.28.5",
"@types/webpack-env": "1.16.3",
"babel-plugin-istanbul": "6.1.1",
"codecov": "3.8.3",
Expand All @@ -91,7 +105,7 @@
"ts-mocha": "10.0.0",
"typescript": "4.4.4",
"unionfs": "4.5.1",
"webpack": "4.46.0"
"webpack": "5.89.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/api",
"sideEffects": false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
Expand All @@ -14,7 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.16.0';
export { wrapTracer, SugaredTracer } from './trace/SugaredTracer';
export { SugaredSpanOptions } from './trace/SugaredOptions';
29 changes: 29 additions & 0 deletions api/src/experimental/trace/SugaredOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* 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.
*/

import { Span, SpanOptions } from '../../';

/**
* Options needed for span creation
*/
export interface SugaredSpanOptions extends SpanOptions {
/**
* function to overwrite default exception behavior to record the exception. No exceptions should be thrown in the function.
* @param e Error which triggered this exception
* @param span current span from context
*/
onException?: (e: Error, span: Span) => void;
}
Loading
Loading