Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
f4f42c5
test(nextjs): Remove Next 13 and pin Next 14 canary and latest tests …
Lms24 Sep 10, 2025
4c7d65e
Merge pull request #17576 from getsentry/master
github-actions[bot] Sep 10, 2025
1c65788
feat(node): Tidy existing ESM loader hook (#17566)
timfish Sep 10, 2025
4f83fa7
feat(deno): Add OpenTelemetry support and vercelAI integration (#17445)
sergical Sep 10, 2025
3faa74a
feat(deps): Update OpenTelemetry dependencies (#17569)
andreiborza Sep 10, 2025
ebe6a67
fix(browser): Ensure propagated `parentSpanId` stays consistent durin…
Lms24 Sep 10, 2025
4cec9f7
chore(repo): Rename `.claude/settings.local.json` to `.claude/setting…
Lms24 Sep 10, 2025
0305685
docs(issue-template): Add note about prioritization (#17590)
s1gr1d Sep 11, 2025
7f40621
feat(cloudflare,vercel-edge): Add support for Anthropic AI instrument…
RulaKhaled Sep 11, 2025
fefb37d
fix(nitro): Support nested `_platform` properties in Nitro 2.11.7+ (#…
s1gr1d Sep 11, 2025
2cc1ef6
feat(node): Ensure `prismaIntegration` works with Prisma v5 (#17595)
mydea Sep 11, 2025
71880da
fix(cloudflare): Initialize once per workflow run and preserve scope …
s1gr1d Sep 11, 2025
15e22cd
ref(node): Inline types imported from `shimmer` (#17597)
onurtemizkan Sep 11, 2025
f742746
ref(node-core): Add `mechanism` to cron instrumentations (#17544)
Lms24 Sep 11, 2025
0527ee3
fix(node): Preserve synchronous return behavior for streamText and ot…
RulaKhaled Sep 11, 2025
891d790
ref(node-core): Add more specific `mechanism.type` to worker thread e…
Lms24 Sep 11, 2025
7b98893
ref(nuxt): Add and adjust `mechanism.type` in error events (#17599)
Lms24 Sep 11, 2025
636b2a5
chore(aws): Update README.md (#17601)
msonnb Sep 11, 2025
4f38b4b
fix(nextjs): Add edge polyfills for nextjs-13 in dev mode (#17488)
andreiborza Sep 11, 2025
63a6797
ref(core): Simplify `linkedErrors` mechanism logic (#17600)
Lms24 Sep 12, 2025
7647e72
ref(react): Add mechanism to `reactErrorHandler` and adjust mechanism…
Lms24 Sep 12, 2025
1917899
test(angular): Bump TS version to 5.9.0 in Angular 20 e2e test (#17605)
Lms24 Sep 12, 2025
47342f3
ref(node): Add mechanism to errors captured via connect and koa integ…
Lms24 Sep 12, 2025
bd0671d
feat(sveltekit): Align build time options with shared type (#17413)
s1gr1d Sep 12, 2025
e083772
ref(replay-internal): Add mechanism to error caught by `replayIntegra…
Lms24 Sep 12, 2025
a4ffb19
test(react-router): Unflake `flushIfServerless` test (#17610)
Lms24 Sep 12, 2025
8077201
ref(aws-severless): Slightly adjust aws-serverless mechanism type (#1…
Lms24 Sep 12, 2025
cf849ab
ref(solid): Add `mechanism` to error captured by `withSentryErrorBoun…
Lms24 Sep 12, 2025
af5752c
chore(deps): bump next from 14.2.29 to 14.2.32 in /dev-packages/e2e-t…
dependabot[bot] Sep 12, 2025
d67b60d
chore(deps): bump next from 14.2.25 to 14.2.32 in /dev-packages/e2e-t…
dependabot[bot] Sep 12, 2025
9914924
ref(bun): Adjust `mechanism` of errors captured in Bun.serve (#17616)
Lms24 Sep 12, 2025
d5f0ac3
ref(core): Adjust MCP server error event `mechanism` (#17622)
Lms24 Sep 12, 2025
6e11be9
ref(nextjs): Set more specific event `mechanism`s (#17543)
Lms24 Sep 12, 2025
5a3d572
feat(core): Add Consola integration (#17435)
AbhiPrasad Sep 12, 2025
abb9337
feat(node-core): Remove experimental note from winston api (#17626)
AbhiPrasad Sep 12, 2025
50e9471
chore(deps): bump next from 14.2.25 to 14.2.32 in /dev-packages/e2e-t…
dependabot[bot] Sep 12, 2025
d198721
ref(angular): Adjust ErrorHandler event mechanism (#17608)
Lms24 Sep 12, 2025
cd706ef
chore(deps): bump next from 14.2.30 to 14.2.32 in /dev-packages/e2e-t…
dependabot[bot] Sep 12, 2025
7c41f03
feat(browser): Add timing and status atttributes to resource spans (#…
Lms24 Sep 12, 2025
e1c4367
ref(remix): Adjust event mechanism of `captureRemixServerException` (…
Lms24 Sep 12, 2025
c587947
ref(astro): Adjust `mechanism` on error events captured by astro midd…
Lms24 Sep 15, 2025
4b562bc
chore: Add changelog note about mechanism changes (#17632)
Lms24 Sep 15, 2025
31dc645
ref(node): Adjust mechanism of `express`, `hapi` and `fastify` error …
Lms24 Sep 15, 2025
28d183a
feat(core): Export `TracesSamplerSamplingContext` type (#17523)
dolbin-prime Sep 15, 2025
566929b
ref(core): Adjust `mechanism` in `captureConsoleIntegration` (#17633)
Lms24 Sep 15, 2025
ce46ffc
ref(vue): Adjust `mechanism` in Vue error handler (#17647)
Lms24 Sep 15, 2025
a271c6d
ref(core): Streamline event processor handling (#17634)
mydea Sep 15, 2025
34b3597
fix(browser): Always start navigation as root span (#17648)
s1gr1d Sep 15, 2025
b24a7e6
chore(deps): bump hono from 4.7.10 to 4.9.7 in /dev-packages/e2e-test…
dependabot[bot] Sep 15, 2025
73a2388
ref(sveltekit): Adjust `mechanism` of error events (#17646)
Lms24 Sep 16, 2025
7200e63
ref(deno): Adjust `mechanism` of errors caught by `globalHandlersInte…
Lms24 Sep 16, 2025
f2e621a
ref(node-core): Adjust `mechanism` of `onUnhandledRejection` and `onU…
Lms24 Sep 16, 2025
1834094
ref(cloudflare): Adjust event `mechanism`s and durable object origin …
Lms24 Sep 16, 2025
702cc87
ref(solidstart): Adjust event `mechanism` in `withServerActionInstrum…
Lms24 Sep 16, 2025
8927921
feat(cloudflare): Introduce lock instrumentation for `context.waitUnt…
0xbad0c0d3 Sep 16, 2025
08c30f8
chore(deps): bump next from 14.2.29 to 14.2.32 in /dev-packages/e2e-t…
dependabot[bot] Sep 16, 2025
108ed16
test(sveltekit): Pin E2E test app SvelteKit versions and fix failing …
Lms24 Sep 16, 2025
41cec5b
test: Adjust node test runner to avoid timeouts (#17663)
mydea Sep 16, 2025
57b0656
ref(browser): Improve `fetchTransport` error handling (#17661)
mydea Sep 16, 2025
e8d255f
Revert "feat(cloudflare): Introduce lock instrumentation for `context…
Lms24 Sep 16, 2025
dd17203
fix(core): Fix error handling when sending envelopes (#17662)
mydea Sep 16, 2025
c076017
meta(changelog): Update changelog for 10.12.0
andreiborza Sep 16, 2025
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
  •  
  •  
  •  
File renamed without changes.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ body:
description: Logs? Screenshots? Yes, please.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional Context
description:
Add any other context here. Please keep the pre-filled text, which helps us manage issue prioritization.
value: |-
<sub>Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.</sub>
validations:
required: false
- type: markdown
attributes:
value: |-
Expand Down
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ body:
Add a blender to Sentry.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional Context
description:
Add any other context here. Please keep the pre-filled text, which helps us manage feature prioritization.
value: |-
<sub>Tip: React with 👍 to help prioritize this improvement. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.</sub>
validations:
required: false
- type: markdown
attributes:
value: |-
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ jobs:
- test-application: 'nextjs-app-dir'
build-command: 'test:build-latest'
label: 'nextjs-app-dir (latest)'
- test-application: 'nextjs-13'
build-command: 'test:build-canary'
label: 'nextjs-13 (canary)'
- test-application: 'nextjs-13'
build-command: 'test:build-latest'
label: 'nextjs-13 (latest)'
Expand Down
6 changes: 3 additions & 3 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = [
path: 'packages/vue/build/esm/index.js',
import: createImport('init', 'browserTracingIntegration'),
gzip: true,
limit: '42 KB',
limit: '43 KB',
},
// Svelte SDK (ESM)
{
Expand Down Expand Up @@ -233,7 +233,7 @@ module.exports = [
import: createImport('init'),
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: true,
limit: '154 KB',
limit: '156 KB',
},
{
name: '@sentry/node - without tracing',
Expand Down Expand Up @@ -263,7 +263,7 @@ module.exports = [
import: createImport('init'),
ignore: [...builtinModules, ...nodePrefixedBuiltinModules],
gzip: true,
limit: '107 KB',
limit: '111 KB',
},
];

Expand Down
128 changes: 128 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,134 @@

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

# 10.12.0

### Important Changes

- **ref: Add and Adjust error event `mechanism` values**

This release includes a variety of changes aimed at setting the `mechanism` field on errors captured automatically by the Sentry SDKs. [The intention](https://github.com/getsentry/sentry-javascript/issues/17212) is to clearly mark which instrumentation captured an error. In addition, some instrumentations previously did not yet annotate the error as handled or unhandled which this series of PRs corrects as well.

<details>
<summary> Relevant PRs </summary>

<br/>

Released in `10.12.0`:
- ref(angular): Adjust ErrorHandler event mechanism ([#17608](https://github.com/getsentry/sentry-javascript/pull/17608))
- ref(astro): Adjust `mechanism` on error events captured by astro middleware ([#17613](https://github.com/getsentry/sentry-javascript/pull/17613))
- ref(aws-severless): Slightly adjust aws-serverless mechanism type ([#17614](https://github.com/getsentry/sentry-javascript/pull/17614))
- ref(bun): Adjust `mechanism` of errors captured in Bun.serve ([#17616](https://github.com/getsentry/sentry-javascript/pull/17616))
- ref(cloudflare): Adjust event `mechanisms` and durable object origin ([#17618](https://github.com/getsentry/sentry-javascript/pull/17618))
- ref(core): Adjust `mechanism` in `captureConsoleIntegration` ([#17633](https://github.com/getsentry/sentry-javascript/pull/17633))
- ref(core): Adjust MCP server error event `mechanism` ([#17622](https://github.com/getsentry/sentry-javascript/pull/17622))
- ref(core): Simplify `linkedErrors` mechanism logic ([#17600](https://github.com/getsentry/sentry-javascript/pull/17600))
- ref(deno): Adjust `mechanism` of errors caught by `globalHandlersIntegration` ([#17635](https://github.com/getsentry/sentry-javascript/pull/17635))
- ref(nextjs): Set more specific event `mechanism`s ([#17543](https://github.com/getsentry/sentry-javascript/pull/17543))
- ref(node): Adjust mechanism of express, hapi and fastify error handlers ([#17623](https://github.com/getsentry/sentry-javascript/pull/17623))
- ref(node-core): Add `mechanism` to cron instrumentations ([#17544](https://github.com/getsentry/sentry-javascript/pull/17544))
- ref(node-core): Add more specific `mechanism.type` to worker thread errors from `childProcessIntegration` ([#17578](https://github.com/getsentry/sentry-javascript/pull/17578))
- ref(node-core): Adjust `mechanism` of `onUnhandledRejection` and `onUnhandledException` integrations ([#17636](https://github.com/getsentry/sentry-javascript/pull/17636))
- ref(node): Add mechanism to errors captured via connect and koa integrations ([#17579](https://github.com/getsentry/sentry-javascript/pull/17579))
- ref(nuxt): Add and adjust `mechanism.type` in error events ([#17599](https://github.com/getsentry/sentry-javascript/pull/17599))
- ref(react): Add mechanism to `reactErrorHandler` and adjust mechanism in `ErrorBoundary` ([#17602](https://github.com/getsentry/sentry-javascript/pull/17602))
- ref(remix): Adjust event mechanism of `captureRemixServerException` ([#17629](https://github.com/getsentry/sentry-javascript/pull/17629))
- ref(replay-internal): Add mechanism to error caught by `replayIntegration` in debug mode ([#17606](https://github.com/getsentry/sentry-javascript/pull/17606))
- ref(solid): Add `mechanism` to error captured by `withSentryErrorBoundary` ([#17607](https://github.com/getsentry/sentry-javascript/pull/17607))
- ref(solidstart): Adjust event mechanism in withServerActionInstrumentation ([#17637](https://github.com/getsentry/sentry-javascript/pull/17637))
- ref(sveltekit): Adjust `mechanism` of error events ([#17646](https://github.com/getsentry/sentry-javascript/pull/17646))
- ref(vue): Adjust mechanism in Vue error handler ([#17647](https://github.com/getsentry/sentry-javascript/pull/17647))

<br/>

Released in `10.11.0`:
- ref(browser): Add more specific `mechanism.type` to errors captured by `httpClientIntegration` ([#17254](https://github.com/getsentry/sentry-javascript/pull/17254))
- ref(browser): Set more descriptive `mechanism.type` in `browserApiErrorsIntergation` ([#17251](https://github.com/getsentry/sentry-javascript/pull/17251))
- ref(core): Add `mechanism.type` to `trpcMiddleware` errors ([#17287](https://github.com/getsentry/sentry-javascript/pull/17287))
- ref(core): Add more specific event `mechanism`s and span origins to `openAiIntegration` ([#17288](https://github.com/getsentry/sentry-javascript/pull/17288))
- ref(nestjs): Add `mechanism` to captured errors ([#17312](https://github.com/getsentry/sentry-javascript/pull/17312))

</details>

- **feat(node) Ensure `prismaIntegration` works with Prisma 5 ([#17595](https://github.com/getsentry/sentry-javascript/pull/17595))**

We used to require to pass in the v5 version of `@prisma/instrumentation` into `prismaIntegration({ prismaInstrumentation: new PrismaInstrumentation() })`, if you wanted to get full instrumentation for Prisma v5. However, it turns out this does not work on v10 of the SDK anymore, because `@prisma/instrumentation@5` requires OTEL v1.

With this release, we dropped the requirement to configure anything to get v5 support of Prisma. You do not need to configure anything in the integration anymore, and can remove the dependency on `@prisma/instrumentation@5` if you had it in your application. You only need to configure the `tracing` preview feature [according to our docs](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/prisma/).

- **feat(deps): Update OpenTelemetry dependencies ([#17558](https://github.com/getsentry/sentry-javascript/pull/17558))**
- @opentelemetry/core bumped to ^2.1.0
- @opentelemetry/context-async-hooks bumped to ^2.1.0
- @opentelemetry/resources bumped to ^2.1.0
- @opentelemetry/sdk-trace-base bumped to ^2.1.0
- @opentelemetry/semantic-conventions bumped to ^1.37.0
- @opentelemetry/instrumentation bumped to ^0.204.0
- @opentelemetry/instrumentation-http bumped to ^0.204.0
- @opentelemetry/instrumentation-amqplib bumped to ^0.51.0
- @opentelemetry/instrumentation-aws-sdk bumped to ^0.59.0
- @opentelemetry/instrumentation-connect bumped to ^0.48.0
- @opentelemetry/instrumentation-dataloader bumped to ^0.22.0
- @opentelemetry/instrumentation-express bumped to ^0.53.0
- @opentelemetry/instrumentation-fs bumped from to ^0.24.0
- @opentelemetry/instrumentation-generic-pool bumped to ^0.48.0
- @opentelemetry/instrumentation-graphql bumped to ^0.52.0
- @opentelemetry/instrumentation-hapi bumped to ^0.51.0
- @opentelemetry/instrumentation-ioredis bumped to ^0.52.0
- @opentelemetry/instrumentation-kafkajs bumped to ^0.14.0
- @opentelemetry/instrumentation-knex bumped to ^0.49.0
- @opentelemetry/instrumentation-koa bumped to ^0.52.0
- @opentelemetry/instrumentation-lru-memoizer bumped to ^0.49.0
- @opentelemetry/instrumentation-mongodb bumped from to ^0.57.0
- @opentelemetry/instrumentation-mongoose bumped from to ^0.51.0
- @opentelemetry/instrumentation-mysql bumped to ^0.50.0
- @opentelemetry/instrumentation-mysql2 bumped to ^0.51.0
- @opentelemetry/instrumentation-nestjs-core bumped to ^0.50.0
- @opentelemetry/instrumentation-pg bumped to ^0.57.0
- @opentelemetry/instrumentation-redis bumped to ^0.53.0
- @opentelemetry/instrumentation-undici bumped to ^0.15.0
- @prisma/instrumentation bumped to 6.15.0

### Other Changes

- feat(browser): Add timing and status atttributes to resource spans ([#17562](https://github.com/getsentry/sentry-javascript/pull/17562))
- feat(cloudflare,vercel-edge): Add support for Anthropic AI instrumentation ([#17571](https://github.com/getsentry/sentry-javascript/pull/17571))
- feat(core): Add Consola integration ([#17435](https://github.com/getsentry/sentry-javascript/pull/17435))
- feat(deps): Update OpenTelemetry dependencies ([#17569](https://github.com/getsentry/sentry-javascript/pull/17569))
- feat(core): Export `TracesSamplerSamplingContext` type ([#17523](https://github.com/getsentry/sentry-javascript/pull/17523))
- feat(deno): Add OpenTelemetry support and vercelAI integration ([#17445](https://github.com/getsentry/sentry-javascript/pull/17445))
- feat(node-core): Remove experimental note from winston api ([#17626](https://github.com/getsentry/sentry-javascript/pull/17626))
- feat(node): Ensure `prismaIntegration` works with Prisma v5 ([#17595](https://github.com/getsentry/sentry-javascript/pull/17595))
- feat(node): Tidy existing ESM loader hook ([#17566](https://github.com/getsentry/sentry-javascript/pull/17566))
- feat(sveltekit): Align build time options with shared type ([#17413](https://github.com/getsentry/sentry-javascript/pull/17413))
- fix(core): Fix error handling when sending envelopes ([#17662](https://github.com/getsentry/sentry-javascript/pull/17662))
- fix(browser): Always start navigation as root span ([#17648](https://github.com/getsentry/sentry-javascript/pull/17648))
- fix(browser): Ensure propagated `parentSpanId` stays consistent during trace in TwP mode ([#17526](https://github.com/getsentry/sentry-javascript/pull/17526))
- fix(cloudflare): Initialize once per workflow run and preserve scope for `step.do` ([#17582](https://github.com/getsentry/sentry-javascript/pull/17582))
- fix(nextjs): Add edge polyfills for nextjs-13 in dev mode ([#17488](https://github.com/getsentry/sentry-javascript/pull/17488))
- fix(nitro): Support nested `_platform` properties in Nitro 2.11.7+ ([#17596](https://github.com/getsentry/sentry-javascript/pull/17596))
- fix(node): Preserve synchronous return behavior for streamText and other methods for AI ([#17580](https://github.com/getsentry/sentry-javascript/pull/17580))
- ref(node): Inline types imported from `shimmer` ([#17597](https://github.com/getsentry/sentry-javascript/pull/17597)) - ref(nuxt): Add and adjust `mechanism.type` in error events ([#17599](https://github.com/getsentry/sentry-javascript/pull/17599))
- ref(browser): Improve `fetchTransport` error handling ([#17661](https://github.com/getsentry/sentry-javascript/pull/17661))

<details>
<summary> <strong>Internal Changes</strong> </summary>

- chore: Add changelog note about mechanism changes ([#17632](https://github.com/getsentry/sentry-javascript/pull/17632))
- chore(aws): Update README.md ([#17601](https://github.com/getsentry/sentry-javascript/pull/17601))
- chore(deps): bump hono from 4.7.10 to 4.9.7 in /dev-packages/e2e-tests/test-applications/cloudflare-hono ([#17630](https://github.com/getsentry/sentry-javascript/pull/17630))
- chore(deps): bump next from 14.2.25 to 14.2.32 in /dev-packages/e2e-tests/test-applications/nextjs-app-dir ([#17627](https://github.com/getsentry/sentry-javascript/pull/17627))
- chore(deps): bump next from 14.2.25 to 14.2.32 in /dev-packages/e2e-tests/test-applications/nextjs-pages-dir ([#17620](https://github.com/getsentry/sentry-javascript/pull/17620))
- chore(deps): bump next from 14.2.29 to 14.2.32 in /dev-packages/e2e-tests/test-applications/nextjs-orpc ([#17494](https://github.com/getsentry/sentry-javascript/pull/17494))
- chore(deps): bump next from 14.2.30 to 14.2.32 in /dev-packages/e2e-tests/test-applications/nextjs-14 ([#17628](https://github.com/getsentry/sentry-javascript/pull/17628))
- chore(repo): Rename `.claude/settings.local.json` to `.claude/settings.json` ([#17591](https://github.com/getsentry/sentry-javascript/pull/17591))
- docs(issue-template): Add note about prioritization ([#17590](https://github.com/getsentry/sentry-javascript/pull/17590))
- ref(core): Streamline event processor handling ([#17634](https://github.com/getsentry/sentry-javascript/pull/17634))
- test(angular): Bump TS version to 5.9.0 in Angular 20 e2e test ([#17605](https://github.com/getsentry/sentry-javascript/pull/17605))
- test(nextjs): Remove Next 13 and pin Next 14 canary and latest tests ([#17577](https://github.com/getsentry/sentry-javascript/pull/17577))
- test(react-router): Unflake `flushIfServerless` test ([#17610](https://github.com/getsentry/sentry-javascript/pull/17610))

</details>

## 10.11.0

### Important Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sentryTest(
expect(logEvent?.exception?.values![0]).toMatchObject({
mechanism: {
handled: true,
type: 'console',
type: 'auto.core.capture_console',
synthetic: true,
},
value: 'console log',
Expand All @@ -59,7 +59,7 @@ sentryTest(
expect(warnEvent?.exception?.values![0]).toMatchObject({
mechanism: {
handled: true,
type: 'console',
type: 'auto.core.capture_console',
synthetic: true,
},
value: 'console warn',
Expand All @@ -81,7 +81,7 @@ sentryTest(
expect(infoEvent?.exception?.values![0]).toMatchObject({
mechanism: {
handled: true,
type: 'console',
type: 'auto.core.capture_console',
synthetic: true,
},
value: 'console info',
Expand All @@ -103,7 +103,7 @@ sentryTest(
expect(errorEvent?.exception?.values![0]).toMatchObject({
mechanism: {
handled: true,
type: 'console',
type: 'auto.core.capture_console',
synthetic: true,
},
value: 'console error',
Expand All @@ -125,7 +125,7 @@ sentryTest(
expect(traceEvent?.exception?.values![0]).toMatchObject({
mechanism: {
handled: true,
type: 'console',
type: 'auto.core.capture_console',
synthetic: true,
},
value: 'console trace',
Expand Down Expand Up @@ -153,7 +153,7 @@ sentryTest(
expect(errorWithErrorEvent?.exception?.values?.[0].value).toBe('console error with error object');
expect(errorWithErrorEvent?.exception?.values?.[0].mechanism).toEqual({
handled: true,
type: 'console',
type: 'auto.core.capture_console',
});
expect(traceWithErrorEvent).toEqual(
expect.objectContaining({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ sentryTest('it captures console messages correctly', async ({ getLocalTestUrl, p
expect(errorWithErrorEvent?.exception?.values?.[0].value).toBe('console error with error object');
expect(errorWithErrorEvent?.exception?.values?.[0].mechanism).toEqual({
handled: true,
type: 'console',
type: 'auto.core.capture_console',
});
expect(traceWithErrorEvent).toEqual(
expect.objectContaining({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Event } from '@sentry/core';
import { sentryTest } from '../../../../utils/fixtures';
import { getMultipleSentryEnvelopeRequests, shouldSkipTracingTest } from '../../../../utils/helpers';

sentryTest('should create fetch spans with http timing @firefox', async ({ browserName, getLocalTestUrl, page }) => {
sentryTest('creates fetch spans with http timing', async ({ browserName, getLocalTestUrl, page }) => {
const supportedBrowsers = ['chromium', 'firefox'];

if (shouldSkipTracingTest() || !supportedBrowsers.includes(browserName)) {
Expand Down Expand Up @@ -40,6 +40,8 @@ sentryTest('should create fetch spans with http timing @firefox', async ({ brows
trace_id: tracingEvent.contexts?.trace?.trace_id,
data: expect.objectContaining({
'http.request.redirect_start': expect.any(Number),
'http.request.redirect_end': expect.any(Number),
'http.request.worker_start': expect.any(Number),
'http.request.fetch_start': expect.any(Number),
'http.request.domain_lookup_start': expect.any(Number),
'http.request.domain_lookup_end': expect.any(Number),
Expand All @@ -49,6 +51,7 @@ sentryTest('should create fetch spans with http timing @firefox', async ({ brows
'http.request.request_start': expect.any(Number),
'http.request.response_start': expect.any(Number),
'http.request.response_end': expect.any(Number),
'http.request.time_to_first_byte': expect.any(Number),
'network.protocol.version': expect.any(String),
}),
}),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as Sentry from '@sentry/browser';

window.Sentry = Sentry;

Sentry.init({
dsn: 'https://[email protected]/1337',
tracesSampleRate: 1,
integrations: [
Sentry.browserTracingIntegration({
_experiments: { enableInteractions: true },
}),
],
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Clicking the navigate button will push a new history state, triggering navigation
document.querySelector('[data-test-id=navigate-button]').addEventListener('click', () => {
const loc = window.location;
const url = loc.href.includes('#nav') ? loc.pathname : `${loc.pathname}#nav`;

history.pushState({}, '', url);
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<button data-test-id="navigate-button">Navigate</button>
</body>
</html>
Loading
Loading