Skip to content

meta(changelog): Update changelog for 9.29.0 #16563

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 14 commits into from
Jun 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = [
import: createImport('init', 'ErrorBoundary', 'reactRouterV6BrowserTracingIntegration'),
ignore: ['react/jsx-runtime'],
gzip: true,
limit: '40.5 KB',
limit: '41 KB',
},
// Vue SDK (ESM)
{
Expand Down Expand Up @@ -215,7 +215,7 @@ module.exports = [
import: createImport('init'),
ignore: ['$app/stores'],
gzip: true,
limit: '39 KB',
limit: '40 KB',
},
// Node SDK (ESM)
{
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@

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

## 9.29.0

### Important Changes

- **feat(browser): Update `web-vitals` to 5.0.2 ([#16492](https://github.com/getsentry/sentry-javascript/pull/16492))**

This release upgrades the `web-vitals` library to version 5.0.2. This upgrade could slightly change the collected web vital values and potentially also influence alerts and performance scores in the Sentry UI.

### Other Changes

- feat(deps): Bump @sentry/rollup-plugin from 3.4.0 to 3.5.0 ([#16524](https://github.com/getsentry/sentry-javascript/pull/16524))
- feat(ember): Stop warning for `onError` usage ([#16547](https://github.com/getsentry/sentry-javascript/pull/16547))
- feat(node): Allow to force activate `vercelAiIntegration` ([#16551](https://github.com/getsentry/sentry-javascript/pull/16551))
- feat(node): Introduce `ignoreLayersType` option to koa integration ([#16553](https://github.com/getsentry/sentry-javascript/pull/16553))
- fix(browser): Ensure `suppressTracing` does not leak when async ([#16545](https://github.com/getsentry/sentry-javascript/pull/16545))
- fix(vue): Ensure root component render span always ends ([#16488](https://github.com/getsentry/sentry-javascript/pull/16488))

## 9.28.1

- feat(deps): Bump @sentry/cli from 2.45.0 to 2.46.0 ([#16516](https://github.com/getsentry/sentry-javascript/pull/16516))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { sentryTest } from '../../../../utils/fixtures';
import {
getFirstSentryEnvelopeRequest,
getMultipleSentryEnvelopeRequests,
hidePage,
properFullEnvelopeRequestParser,
shouldSkipTracingTest,
} from '../../../../utils/helpers';
Expand Down Expand Up @@ -33,9 +34,7 @@ sentryTest('should capture an INP click event span after pageload', async ({ bro
await page.waitForTimeout(500);

// Page hide to trigger INP
await page.evaluate(() => {
window.dispatchEvent(new Event('pagehide'));
});
await hidePage(page);

// Get the INP span envelope
const spanEnvelope = (await spanEnvelopePromise)[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { sentryTest } from '../../../../utils/fixtures';
import {
getFirstSentryEnvelopeRequest,
getMultipleSentryEnvelopeRequests,
hidePage,
properFullEnvelopeRequestParser,
shouldSkipTracingTest,
} from '../../../../utils/helpers';
Expand Down Expand Up @@ -35,9 +36,7 @@ sentryTest(
await page.waitForTimeout(500);

// Page hide to trigger INP
await page.evaluate(() => {
window.dispatchEvent(new Event('pagehide'));
});
await hidePage(page);

// Get the INP span envelope
const spanEnvelope = (await spanEnvelopePromise)[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { SpanEnvelope } from '@sentry/core';
import { sentryTest } from '../../../../utils/fixtures';
import {
getMultipleSentryEnvelopeRequests,
hidePage,
properFullEnvelopeRequestParser,
shouldSkipTracingTest,
} from '../../../../utils/helpers';
Expand Down Expand Up @@ -33,9 +34,7 @@ sentryTest(
await page.waitForTimeout(500);

// Page hide to trigger INP
await page.evaluate(() => {
window.dispatchEvent(new Event('pagehide'));
});
await hidePage(page);

// Get the INP span envelope
const spanEnvelope = (await spanEnvelopePromise)[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Sentry.init({
}),
],
tracesSampleRate: 1,
debug: true,
});

const client = Sentry.getClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { sentryTest } from '../../../../utils/fixtures';
import {
getFirstSentryEnvelopeRequest,
getMultipleSentryEnvelopeRequests,
hidePage,
properFullEnvelopeRequestParser,
shouldSkipTracingTest,
} from '../../../../utils/helpers';
Expand Down Expand Up @@ -32,9 +33,7 @@ sentryTest('should capture an INP click event span during pageload', async ({ br
await page.waitForTimeout(500);

// Page hide to trigger INP
await page.evaluate(() => {
window.dispatchEvent(new Event('pagehide'));
});
await hidePage(page);

// Get the INP span envelope
const spanEnvelope = (await spanEnvelopePromise)[0];
Expand Down Expand Up @@ -118,6 +117,14 @@ sentryTest(
});

// Page hide to trigger INP

// Important: Purposefully not using hidePage() here to test the hidden state
// via the `pagehide` event. This is necessary because iOS Safari 14.4
// still doesn't fully emit the `visibilitychange` events but it's the lower
// bound for Safari on iOS that we support.
// If this test times out or fails, it's likely because we tried updating
// the web-vitals library which officially already dropped support for
// this iOS version
await page.evaluate(() => {
window.dispatchEvent(new Event('pagehide'));
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
"ts-loader": "^9.4.3",
"tsconfig-paths": "^4.2.0",
"typescript": "~5.0.0"
},
"pnpm": {
"overrides": {
"minimatch": "10.0.1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@sentry/nextjs": "latest || *",
"@t3-oss/env-nextjs": "^0.10.1",
"@tanstack/react-query": "^5.50.0",
"@trpc/client": "^11.0.0-rc.446",
"@trpc/react-query": "^11.0.0-rc.446",
"@trpc/server": "^11.0.0-rc.446",
"@trpc/client": "~11.3.0",
"@trpc/react-query": "~11.3.0",
"@trpc/server": "~11.3.0",
"geist": "^1.3.0",
"next": "14.2.29",
"react": "18.3.1",
Expand Down
17 changes: 17 additions & 0 deletions dev-packages/node-integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,20 @@ To run tests with Vitest's watch mode:
To filter tests by their title:

`yarn test -t "set different properties of a scope"`

## Debugging Tests

To enable verbose logging during test execution, set the `DEBUG` environment variable:

`DEBUG=1 yarn test`

When `DEBUG` is enabled, the test runner will output:

- Test scenario startup information (path, flags, DSN)
- Docker Compose output when using `withDockerCompose`
- Child process stdout and stderr output
- HTTP requests made during tests
- Process errors and exceptions
- Line-by-line output from test scenarios

This is particularly useful when debugging failing tests or understanding the test execution flow.
2 changes: 2 additions & 0 deletions dev-packages/opentelemetry-v2-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"node": ">=18"
},
"scripts": {
"lint": "eslint . --format stylish",
"fix": "eslint . --format stylish --fix",
"test": "vitest run",
"test:watch": "vitest --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/opentelemetry-v2-tests/test/helpers/isSpan.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Span } from '@opentelemetry/api';
import { INVALID_TRACEID, INVALID_SPANID, type SpanContext } from '@opentelemetry/api';
import { type SpanContext, INVALID_SPANID, INVALID_TRACEID } from '@opentelemetry/api';

export const isSpan = (value: unknown): value is Span => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { BasicTracerProvider } from '@opentelemetry/sdk-trace-base';
import type { ClientOptions, Options } from '@sentry/core';
import { flush, getClient, getCurrentScope, getGlobalScope, getIsolationScope } from '@sentry/core';
import { setOpenTelemetryContextAsyncContextStrategy } from '../../../../packages/opentelemetry/src/asyncContextStrategy';
import { SentrySpanProcessor } from '../../../../packages/opentelemetry/src/spanProcessor';
import type { OpenTelemetryClient } from '../../../../packages/opentelemetry/src/types';
import { clearOpenTelemetrySetupCheck } from '../../../../packages/opentelemetry/src/utils/setupCheck';
import { initOtel } from './initOtel';
import { init as initTestClient } from './TestClient';
import { SentrySpanProcessor } from '../../../../packages/opentelemetry/src/spanProcessor';

const PUBLIC_DSN = 'https://username@domain/123';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest';
import { SENTRY_TRACE_STATE_DSC } from '../../../../packages/opentelemetry/src/constants';
import { startInactiveSpan, startSpan } from '../../../../packages/opentelemetry/src/trace';
import { makeTraceState } from '../../../../packages/opentelemetry/src/utils/makeTraceState';
import { cleanupOtel, getProvider, getSpanProcessor, mockSdkInit } from '../helpers/mockSdkInit';
import { cleanupOtel, getSpanProcessor, mockSdkInit } from '../helpers/mockSdkInit';
import type { TestClientInterface } from '../helpers/TestClient';

describe('Integration | Transactions', () => {
Expand Down Expand Up @@ -514,7 +514,6 @@ describe('Integration | Transactions', () => {
},
});

const provider = getProvider();
const spanProcessor = getSpanProcessor();

const exporter = spanProcessor ? spanProcessor['_exporter'] : undefined;
Expand Down Expand Up @@ -548,57 +547,56 @@ describe('Integration | Transactions', () => {
expect(finishedSpans.length).toBe(0);
});

it('collects child spans that are finished within 5 minutes their parent span has been sent', async () => {
const timeout = 5 * 60 * 1000;
const now = Date.now();
vi.useFakeTimers();
vi.setSystemTime(now);
it('collects child spans that are finished within 5 minutes their parent span has been sent', async () => {
const timeout = 5 * 60 * 1000;
const now = Date.now();
vi.useFakeTimers();
vi.setSystemTime(now);

const logs: unknown[] = [];
vi.spyOn(logger, 'log').mockImplementation(msg => logs.push(msg));
const logs: unknown[] = [];
vi.spyOn(logger, 'log').mockImplementation(msg => logs.push(msg));

const transactions: Event[] = [];
const transactions: Event[] = [];

mockSdkInit({
tracesSampleRate: 1,
beforeSendTransaction: event => {
transactions.push(event);
return null;
},
});
mockSdkInit({
tracesSampleRate: 1,
beforeSendTransaction: event => {
transactions.push(event);
return null;
},
});

const provider = getProvider();
const spanProcessor = getSpanProcessor();
const spanProcessor = getSpanProcessor();

const exporter = spanProcessor ? spanProcessor['_exporter'] : undefined;
const exporter = spanProcessor ? spanProcessor['_exporter'] : undefined;

if (!exporter) {
throw new Error('No exporter found, aborting test...');
}
if (!exporter) {
throw new Error('No exporter found, aborting test...');
}

startSpanManual({ name: 'test name' }, async span => {
const subSpan = startInactiveSpan({ name: 'inner span 1' });
subSpan.end();
startSpanManual({ name: 'test name' }, async span => {
const subSpan = startInactiveSpan({ name: 'inner span 1' });
subSpan.end();

const subSpan2 = startInactiveSpan({ name: 'inner span 2' });
const subSpan2 = startInactiveSpan({ name: 'inner span 2' });

span.end();
span.end();

setTimeout(() => {
subSpan2.end();
}, timeout - 2);
});
setTimeout(() => {
subSpan2.end();
}, timeout - 2);
});

vi.advanceTimersByTime(timeout - 1);
vi.advanceTimersByTime(timeout - 1);

expect(transactions).toHaveLength(2);
expect(transactions[0]?.spans).toHaveLength(1);
expect(transactions).toHaveLength(2);
expect(transactions[0]?.spans).toHaveLength(1);

const finishedSpans: any = exporter['_finishedSpanBuckets'].flatMap(bucket =>
bucket ? Array.from(bucket.spans) : [],
);
expect(finishedSpans.length).toBe(0);
});
const finishedSpans: any = exporter['_finishedSpanBuckets'].flatMap(bucket =>
bucket ? Array.from(bucket.spans) : [],
);
expect(finishedSpans.length).toBe(0);
});

it('discards child spans that are finished after 5 minutes their parent span has been sent', async () => {
const timeout = 5 * 60 * 1000;
Expand All @@ -619,7 +617,6 @@ it('collects child spans that are finished within 5 minutes their parent span ha
},
});

const provider = getProvider();
const spanProcessor = getSpanProcessor();

const exporter = spanProcessor ? spanProcessor['_exporter'] : undefined;
Expand Down
4 changes: 2 additions & 2 deletions dev-packages/opentelemetry-v2-tests/test/trace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ import {
} from '../../../packages/opentelemetry/src/trace';
import type { AbstractSpan } from '../../../packages/opentelemetry/src/types';
import { getActiveSpan } from '../../../packages/opentelemetry/src/utils/getActiveSpan';
import { getParentSpanId } from '../../../packages/opentelemetry/src/utils/getParentSpanId';
import { getSamplingDecision } from '../../../packages/opentelemetry/src/utils/getSamplingDecision';
import { getSpanKind } from '../../../packages/opentelemetry/src/utils/getSpanKind';
import { makeTraceState } from '../../../packages/opentelemetry/src/utils/makeTraceState';
import { spanHasAttributes, spanHasName } from '../../../packages/opentelemetry/src/utils/spanTypes';
import { cleanupOtel, mockSdkInit } from './helpers/mockSdkInit';
import { isSpan } from './helpers/isSpan';
import { getParentSpanId } from '../../../packages/opentelemetry/src/utils/getParentSpanId';
import { cleanupOtel, mockSdkInit } from './helpers/mockSdkInit';

describe('trace', () => {
beforeEach(() => {
Expand Down
1 change: 1 addition & 0 deletions packages/browser-utils/src/metrics/cls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function trackClsAsStandaloneSpan(): void {
standaloneClsEntry = entry;
}, true);

// TODO: Figure out if we can switch to using whenIdleOrHidden instead of onHidden
// use pagehide event from web-vitals
onHidden(() => {
_collectClsOnce();
Expand Down
10 changes: 8 additions & 2 deletions packages/browser-utils/src/metrics/web-vitals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

> A modular library for measuring the [Web Vitals](https://web.dev/vitals/) metrics on real users.

This was vendored from: https://github.com/GoogleChrome/web-vitals: v3.5.2
This was vendored from: https://github.com/GoogleChrome/web-vitals: v5.0.2

The commit SHA used is:
[3d2b3dc8576cc003618952fa39902fab764a53e2](https://github.com/GoogleChrome/web-vitals/tree/3d2b3dc8576cc003618952fa39902fab764a53e2)
[463abbd425cda01ed65e0b5d18be9f559fe446cb](https://github.com/GoogleChrome/web-vitals/tree/463abbd425cda01ed65e0b5d18be9f559fe446cb)

Current vendored web vitals are:

Expand All @@ -27,6 +27,12 @@ web-vitals only report once per pageload.

## CHANGELOG

https://github.com/getsentry/sentry-javascript/pull/16492

- Bumped from Web Vitals 4.2.5 to 5.0.2
- Mainly fixes some INP, LCP and FCP edge cases
- Original library removed FID; we still keep it around for now

https://github.com/getsentry/sentry-javascript/pull/14439

- Bumped from Web Vitals v3.5.2 to v4.2.4
Expand Down
Loading
Loading