Skip to content

meta(changelog): Update changelog for v8.0.0-alpha.2 #10923

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

Merged
merged 22 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4b7deee
ref(ember): Avoid namespace import to hopefully resolve minification …
mydea Mar 1, 2024
58368c4
ci(deps): bump dorny/paths-filter from 3.0.0 to 3.0.1 (#10889)
dependabot[bot] Mar 4, 2024
9c213eb
ci(deps): bump JasonEtco/create-an-issue from 2.9.1 to 2.9.2 (#10888)
dependabot[bot] Mar 4, 2024
54b1cf5
feat(core): Fix span scope handling & transaction setting (#10886)
mydea Mar 4, 2024
a037e9f
ref(integrations): Delete deprecated class integrations (#10887)
s1gr1d Mar 4, 2024
2e8b662
test(replay): Ensure we don't run replay-worker tests as node unit te…
mydea Mar 4, 2024
68fa29e
ref: Refactor span status handling to be OTEL compatible (#10871)
mydea Mar 4, 2024
ff918f0
feat(browser): Exclude span exports from non-performance CDN bundles …
mydea Mar 4, 2024
09f2a69
fix(opentelemetry): Ensure DSC propagation works correctly (#10904)
mydea Mar 4, 2024
ef6e6e5
feat: Remove `@sentry/opentelemetry-node` package (#10906)
mydea Mar 4, 2024
9ababfd
chore(sveltekit): Fix punctuation in a console.log (#10895)
bfontaine Mar 4, 2024
f655931
fix(browser): Don't use chrome variable name (#10874)
AbhiPrasad Mar 4, 2024
056f944
feat(esm): Import rather than require `inspector` (#10910)
timfish Mar 4, 2024
97bbb8c
feat(node): Allow to configure `skipOpenTelemetrySetup` (#10907)
mydea Mar 4, 2024
d642b41
feat(deps): bump @sentry/cli from 2.28.6 to 2.29.1 (#10908)
dependabot[bot] Mar 4, 2024
e08e1ec
build(profiling-node): Fix profiling-node tarball creation & caching …
mydea Mar 4, 2024
76c4c26
feat(core): Use serialized spans in transaction event (#10912)
mydea Mar 4, 2024
166bfc9
feat(v8/core): remove void from transport return (#10794)
AbhiPrasad Mar 4, 2024
4b3c432
Gitflow: Merge master into develop (#10920)
mydea Mar 5, 2024
887fc9f
docs: Fix typo in migration docs (#10921)
harish-talview Mar 5, 2024
c502b64
ref: Refactor some deprecated `startSpan` options (#10825)
mydea Mar 5, 2024
deb9da8
meta(changelog): Update changelog for v8.0.0-alpha.2
mydea Mar 5, 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
5 changes: 0 additions & 5 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ targets:
- name: npm
id: '@sentry/serverless'
includeNames: /^sentry-serverless-\d.*\.tgz$/
- name: npm
id: '@sentry/opentelemetry-node'
includeNames: /^sentry-opentelemetry-node-\d.*\.tgz$/
- name: npm
id: '@sentry/bun'
includeNames: /^sentry-bun-\d.*\.tgz$/
Expand Down Expand Up @@ -194,8 +191,6 @@ targets:
onlyIfPresent: /^sentry-svelte-\d.*\.tgz$/
'npm:@sentry/sveltekit':
onlyIfPresent: /^sentry-sveltekit-\d.*\.tgz$/
'npm:@sentry/opentelemetry-node':
onlyIfPresent: /^sentry-opentelemetry-node-\d.*\.tgz$/
'npm:@sentry/bun':
onlyIfPresent: /^sentry-bun-\d.*\.tgz$/
'npm:@sentry/vercel-edge':
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ body:
setup.
options:
- '@sentry/browser'
- '@sentry/astro'
- '@sentry/astro'
- '@sentry/angular'
- '@sentry/angular-ivy'
- '@sentry/bun'
Expand All @@ -40,7 +40,6 @@ body:
- '@sentry/gatsby'
- '@sentry/nextjs'
- '@sentry/node'
- '@sentry/opentelemetry-node'
- '@sentry/react'
- '@sentry/remix'
- '@sentry/serverless'
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ env:
${{ github.workspace }}/packages/utils/esm

BUILD_CACHE_KEY: build-cache-${{ github.event.inputs.commit || github.sha }}
BUILD_PROFILING_NODE_CACHE_TARBALL_KEY: profiling-node-tarball-${{ github.event.inputs.commit || github.sha }}
BUILD_CACHE_TARBALL_KEY: tarball-${{ github.event.inputs.commit || github.sha }}

# GH will use the first restore-key it finds that matches
# So it will start by looking for one from the same branch, else take the newest one it can find elsewhere
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
echo "COMMIT_MESSAGE=$(git log -n 1 --pretty=format:%s $COMMIT_SHA)" >> $GITHUB_ENV

- name: Determine changed packages
uses: dorny/[email protected].0
uses: dorny/[email protected].1
id: changed
with:
filters: |
Expand Down Expand Up @@ -402,15 +402,15 @@ jobs:
uses: ./.github/actions/restore-cache
env:
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
- name: Pack tarballs
# Profiling tarball is built separately as we assemble the precompiled binaries
run: yarn build:tarball --ignore @sentry/profiling-node

- name: Restore profiling tarball
uses: actions/cache/restore@v4
- name: Extract Profiling Node Prebuilt Binaries
uses: actions/download-artifact@v3
with:
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
path: ${{ github.workspace }}/packages/*/*.tgz
name: profiling-node-binaries-${{ github.sha }}
path: ${{ github.workspace }}/packages/profiling-node/lib/

- name: Pack tarballs
run: yarn build:tarball

- name: Archive artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -985,8 +985,6 @@ jobs:
key: nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT }}
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
restore-keys: ${{ env.NX_CACHE_RESTORE_KEYS }}
- name: Build tarballs
run: yarn build:tarball --ignore @sentry/profiling-node

# Rebuild profiling by compiling TS and pull the precompiled binary artifacts
- name: Build Profiling Node
Expand All @@ -1001,21 +999,22 @@ jobs:
# https://github.com/actions/upload-artifact/issues/478
if: |
(needs.job_get_metadata.outputs.changed_profiling_node_bindings == 'true') ||
(needs.job_get_metadata.outputs.is_release == 'true') ||
(github.event_name != 'pull_request')
uses: actions/download-artifact@v3
with:
name: profiling-node-binaries-${{ github.sha }}
path: ${{ github.workspace }}/packages/profiling-node/lib/

- name: Build Profiling tarball
run: yarn build:tarball --scope @sentry/profiling-node
run: yarn build:tarball
# End rebuild profiling

- name: Stores tarballs in cache
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/packages/*/*.tgz
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}

job_e2e_tests:
name: E2E ${{ matrix.label || matrix.test-application }} Test
Expand Down Expand Up @@ -1111,7 +1110,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/packages/*/*.tgz
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}

- name: Get node version
id: versions
Expand Down Expand Up @@ -1202,13 +1201,13 @@ jobs:
with:
name: profiling-node-binaries-${{ github.sha }}
path: ${{ github.workspace }}/packages/profiling-node/lib/
- name: Build Profiling tarball
run: yarn build:tarball --scope @sentry/profiling-node

- name: Restore tarball cache
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/packages/*/*.tgz
key: ${{ env.BUILD_PROFILING_NODE_CACHE_TARBALL_KEY }}
key: ${{ env.BUILD_CACHE_TARBALL_KEY }}
fail-on-cache-miss : true

- name: Get node version
id: versions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:

- name: Create Issue
if: failure() && github.event_name == 'schedule'
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:

- name: Create Issue
if: failure() && github.event_name == 'schedule'
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: npx playwright install-deps

- name: Determine changed tests
uses: dorny/[email protected].0
uses: dorny/[email protected].1
id: changed
with:
list-files: json
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/issue-package-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ jobs:
"@sentry.node": {
"label": "Package: Node"
},
"@sentry.opentelemetry-node": {
"label": "Package: otel-node"
},
"@sentry.react": {
"label": "Package: react"
},
Expand Down
87 changes: 86 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,39 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 8.0.0-alpha.2

This alpha release fixes a build problem that prevented 8.0.0-alpha.1 from being properly released.

### Important Changes

- **feat: Remove `@sentry/opentelemetry-node` package (#10906)**

The `@sentry/opentelemetry-node` package has been removed. Instead, you can either use `@sentry/node` with built-in
OpenTelemetry support, or use `@sentry/opentelemetry` to manually connect Sentry with OpenTelemetry.

### Removal/Refactoring of deprecated functionality

- ref: Refactor some deprecated `startSpan` options (#10825)
- feat(v8/core): remove void from transport return (#10794)
- ref(integrations): Delete deprecated class integrations (#10887)

### Other Changes

- feat(core): Use serialized spans in transaction event (#10912)
- feat(deps): bump @sentry/cli from 2.28.6 to 2.29.1 (#10908)
- feat(node): Allow to configure `skipOpenTelemetrySetup` (#10907)
- feat(esm): Import rather than require `inspector` (#10910)
- fix(browser): Don't use chrome variable name (#10874)
- chore(sveltekit): Fix punctuation in a console.log (#10895)
- fix(opentelemetry): Ensure DSC propagation works correctly (#10904)
- feat(browser): Exclude span exports from non-performance CDN bundles (#10879)
- ref: Refactor span status handling to be OTEL compatible (#10871)
- feat(core): Fix span scope handling & transaction setting (#10886)
- ref(ember): Avoid namespace import to hopefully resolve minification issue (#10885)

Work in this release contributed by @harish-talview & @bfontaine. Thank you for your contributions!

## 8.0.0-alpha.1

This is the first Alpha release of the v8 cycle, which includes a variety of breaking changes.
Expand All @@ -19,7 +52,7 @@ changes:

- There is now automated performance instrumentation for Express, Fastify, Nest.js and Koa. You can remove any
performance and request isolation code you previously wrote manually for these frameworks.
- All performance instrumenttion is enabled by default, and will only take effect if the instrumented package is used.
- All performance instrumention is enabled by default, and will only take effect if the instrumented package is used.
You don't need to use `autoDiscoverNodePerformanceMonitoringIntegrations()` anymore.
- You need to ensure to call `Sentry.init()` _before_ you import any other packages. Otherwise, the packages cannot be
instrumented:
Expand Down Expand Up @@ -121,11 +154,14 @@ configuration options.

### Other Changes

- feat: Ensure `withActiveSpan` is exported everywhere (#10878)
- feat: Allow passing `null` to `withActiveSpan` (#10717)
- feat: Implement new Async Context Strategy (#10647)
- feat: Remove `hub` from global, `hub.run` & hub utilities (#10718)
- feat: Update default trace propagation targets logic in the browser (#10621)
- feat: Ignore ResizeObserver and undefined error (#10845)
- feat(browser): Export `getIsolationScope` and `getGlobalScope` (#10658)
- feat(browser): Prevent initialization in browser extensions (#10844)
- feat(core): Add metric summaries to spans (#10554)
- feat(core): Decouple metrics aggregation from client (#10628)
- feat(core): Lookup client on current scope, not hub (#10635)
Expand Down Expand Up @@ -210,6 +246,8 @@ We have also removed or updated a variety of deprecated APIs.
- feat(v8/node): Remove deepReadDirSync export (#10564)
- feat(v8/node): Remove deprecated anr methods (#10562)
- feat(v8/node): Remove getModuleFromFilename export (#10754)
- feat(core): Remove deprecated props from `Span` interface (#10854)
- fix(v8): Remove deprecated tracing config (#10870)
- ref: Make `setupOnce` optional in integrations (#10729)
- ref: Migrate transaction source from metadata to attributes (#10674)
- ref: Refactor remaining `makeMain` usage (#10713)
Expand All @@ -224,6 +262,53 @@ We have also removed or updated a variety of deprecated APIs.
- ref: Remove usage of span tags (#10808)
- ref: Remove user segment (#10575)

## 7.105.0

### Important Changes

- **feat: Ensure `withActiveSpan` is exported everywhere (#10877)**

You can use the `withActiveSpan` method to ensure a certain span is the active span in a given callback. This can be
used to create a span as a child of a specific span with the `startSpan` API methods:

```js
const parentSpan = Sentry.startInactiveSpan({ name: 'parent' });
if (parentSpan) {
withActiveSpan(parentSpan, () => {
// This will be a direct child of parentSpan
const childSpan = Sentry.startInactiveSpan({ name: 'child' });
});
}
```

## 7.104.0

### Important Changes

- **feat(performance): create Interaction standalone spans on inp events (#10709)**

This release adds support for the INP web vital. This is currently only supported for Saas Sentry, and product support
is released with the upcoming `24.3.0` release of self-hosted.

To opt-in to this feature, you can use the `enableInp` option in the `browserTracingIntegration`:

```js
Sentry.init({
integrations: [
Sentry.browserTracingIntegration({
enableInp: true,
});
]
})
```

### Other Changes

- feat(feedback): Flush replays when feedback form opens (#10567)
- feat(profiling-node): Expose `nodeProfilingIntegration` (#10864)
- fix(profiling-node): Fix dependencies to point to current versions (#10861)
- fix(replay): Add `errorHandler` for replayCanvas integration (#10796)

## 7.103.0

### Important Changes
Expand Down
20 changes: 19 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Sentry.init({
tracesSampleRate: 1.0,
});

// Before (v8)
// After (v8)
const Sentry = require('@sentry/node');

Sentry.init({
Expand Down Expand Up @@ -272,6 +272,7 @@ Removed top-level exports: `tracingOrigins`, `MetricsAggregator`, `metricsAggreg
- [Removal of `spanStatusfromHttpCode` in favour of `getSpanStatusFromHttpCode`](./MIGRATION.md#removal-of-spanstatusfromhttpcode-in-favour-of-getspanstatusfromhttpcode)
- [Removal of `addGlobalEventProcessor` in favour of `addEventProcessor`](./MIGRATION.md#removal-of-addglobaleventprocessor-in-favour-of-addeventprocessor)
- [Removal of `lastEventId()` method](./MIGRATION.md#deprecate-lasteventid)
- [Remove `void` from transport return types](./MIGRATION.md#remove-void-from-transport-return-types)

#### Deprecation of `Hub` and `getCurrentHub()`

Expand Down Expand Up @@ -435,6 +436,23 @@ addEventProcessor(event => {

The `lastEventId` function has been removed. See [below](./MIGRATION.md#deprecate-lasteventid) for more details.

#### Remove `void` from transport return types

The `send` method on the `Transport` interface now always requires a `TransportMakeRequestResponse` to be returned in
the promise. This means that the `void` return type is no longer allowed.

```ts
// Before (v7)
interface Transport {
send(event: Event): Promise<void | TransportMakeRequestResponse>;
}

// After (v8)
interface Transport {
send(event: Event): Promise<TransportMakeRequestResponse>;
}
```

### Browser SDK (Browser, React, Vue, Angular, Ember, etc.)

Removed top-level exports: `Offline`, `makeXHRTransport`, `BrowserTracing`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ window.Sentry = Sentry;
Sentry.init({
dsn: 'https://[email protected]/1337',
defaultIntegrations: false,
integrations: [new Sentry.Integrations.Breadcrumbs()],
integrations: [Sentry.breadcrumbsIntegration()],
sampleRate: 1,
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ window.Sentry = Sentry;
Sentry.init({
dsn: 'https://[email protected]/1337',
defaultIntegrations: false,
integrations: [new Sentry.Integrations.Breadcrumbs()],
integrations: [Sentry.breadcrumbsIntegration()],
sampleRate: 1,
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ window.Sentry = Sentry;
Sentry.init({
dsn: 'https://[email protected]/1337',
defaultIntegrations: false,
integrations: [new Sentry.Integrations.Breadcrumbs()],
integrations: [Sentry.breadcrumbsIntegration()],
sampleRate: 1,
});
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import {
Breadcrumbs,
BrowserClient,
FunctionToString,
HttpContext,
Hub,
InboundFilters,
LinkedErrors,
breadcrumbsIntegration,
dedupeIntegration,
defaultStackParser,
functionToStringIntegration,
httpContextIntegration,
inboundFiltersIntegration,
linkedErrorsIntegration,
makeFetchTransport,
} from '@sentry/browser';

const integrations = [
new Breadcrumbs(),
new FunctionToString(),
breadcrumbsIntegration(),
functionToStringIntegration(),
dedupeIntegration(),
new HttpContext(),
new InboundFilters(),
new LinkedErrors(),
httpContextIntegration(),
inboundFiltersIntegration(),
linkedErrorsIntegration(),
];

const client = new BrowserClient({
Expand Down
Loading