Skip to content

Commit 8304869

Browse files
author
Luca Forstner
committed
Merge remote-tracking branch 'origin/develop' into lforst-enable-prisma-by-default
2 parents 68434a8 + 4d46e53 commit 8304869

1,479 files changed

Lines changed: 9332 additions & 6080 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
parserOptions: {
1212
ecmaVersion: 2018,
1313
},
14-
extends: ['@sentry-internal/sdk/src/base'],
14+
extends: ['@sentry-internal/sdk'],
1515
ignorePatterns: [
1616
'coverage/**',
1717
'build/**',

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🐞 Bug Report
22
description: Tell us about something that's not working the way we (probably) intend.
3-
type: 'bug'
3+
labels: ['Bug']
44
body:
55
- type: checkboxes
66
attributes:

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 💡 Feature Request
22
description: Create a feature request for a sentry-javascript SDK.
3-
type: 'enhancement'
3+
labels: ['Feature']
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/flaky.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: ❅ Flaky Test
22
description: Report a flaky test in CI
33
title: '[Flaky CI]: '
4-
type: 'task'
5-
labels: ['Type: Tests']
4+
labels: ['Tests']
65
body:
76
- type: dropdown
87
id: type

.github/ISSUE_TEMPLATE/internal.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: 💡 [Internal] Blank Issue
22
description: Only for Sentry Employees! Create an issue without a template.
3-
type: 'task'
43
body:
54
- type: markdown
65
attributes:

.github/workflows/issue-package-label.yml

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
"@sentry.bun": {
4545
"label": "Bun"
4646
},
47-
"@sentry.cloudflare - hono": {
47+
"@sentry.cloudflare.-.hono": {
4848
"label": "Hono"
4949
},
5050
"@sentry.cloudflare": {
@@ -68,20 +68,20 @@ jobs:
6868
"@sentry.nextjs": {
6969
"label": "Next.js"
7070
},
71-
"@sentry.node - express": {
71+
"@sentry.node.-.express": {
7272
"label": "Express"
7373
},
74-
"@sentry.node - fastify": {
74+
"@sentry.node.-.fastify": {
7575
"label": "Fastify"
7676
},
77-
"@sentry.node - koa": {
77+
"@sentry.node.-.koa": {
7878
"label": "Koa"
7979
},
80-
"@sentry.node - hapi": {
81-
"label": "Hapi
80+
"@sentry.node.-.hapi": {
81+
"label": "Hapi"
8282
},
83-
"@sentry.node - connect": {
84-
"label": "Connect
83+
"@sentry.node.-.connect": {
84+
"label": "Connect"
8585
},
8686
"@sentry.node": {
8787
"label": "Node.js"
@@ -90,7 +90,7 @@ jobs:
9090
"label": "Nuxt"
9191
},
9292
"@sentry.react-router": {
93-
"label": "React Router Framework "
93+
"label": "React Router Framework"
9494
},
9595
"@sentry.react": {
9696
"label": "React"
@@ -120,10 +120,10 @@ jobs:
120120
"label": "WASM"
121121
},
122122
"Sentry.Browser.Loader": {
123-
"label": "Browser\nLoader Script"
123+
"label": "Browser"
124124
},
125125
"Sentry.Browser.CDN.bundle": {
126-
"label": "Browser\nCDN Bundle"
126+
"label": "Browser"
127127
}
128128
}
129129
export_to: output
@@ -134,3 +134,29 @@ jobs:
134134
uses: actions-ecosystem/action-add-labels@v1
135135
with:
136136
labels: ${{ steps.packageLabel.outputs.label }}
137+
138+
- name: Map additional to issue label
139+
# https://github.com/kanga333/variable-mapper
140+
uses: kanga333/variable-mapper@v0.3.0
141+
id: additionalLabel
142+
if: steps.packageName.outputs.match != ''
143+
with:
144+
key: '${{ steps.packageName.outputs.group1 }}'
145+
# Note: Since this is handled as a regex, and JSON parse wrangles slashes /, we just use `.` instead
146+
map: |
147+
{
148+
"Sentry.Browser.Loader": {
149+
"label": "Loader Script"
150+
},
151+
"Sentry.Browser.CDN.bundle": {
152+
"label": "CDN Bundle"
153+
}
154+
}
155+
export_to: output
156+
157+
- name: Add additional label if applicable
158+
# Note: We only add the label if the issue is still open
159+
if: steps.additionalLabel.outputs.label != ''
160+
uses: actions-ecosystem/action-add-labels@v1
161+
with:
162+
labels: ${{ steps.additionalLabel.outputs.label }}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages/browser/test/loader.js
22
packages/replay-worker/examples/worker.min.js
3+
dev-packages/browser-integration-tests/fixtures

CHANGELOG.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,112 @@
1010

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

13+
## 9.15.0
14+
15+
### Important Changes
16+
17+
- **feat: Export `wrapMcpServerWithSentry` from server packages ([#16127](https://github.com/getsentry/sentry-javascript/pull/16127))**
18+
19+
Exports the wrapMcpServerWithSentry which is our MCP server instrumentation from all the server packages.
20+
21+
- **feat(core): Associate resource/tool/prompt invocations with request span instead of response span ([#16126](https://github.com/getsentry/sentry-javascript/pull/16126))**
22+
23+
Adds a best effort mechanism to associate handler spans for `resource`, `tool` and `prompt` with the incoming message requests instead of the outgoing SSE response.
24+
25+
### Other Changes
26+
27+
- fix: Vercel `ai` ESM patching ([#16152](https://github.com/getsentry/sentry-javascript/pull/16152))
28+
- fix(node): Update version range for `module.register` ([#16125](https://github.com/getsentry/sentry-javascript/pull/16125))
29+
- fix(react-router): Spread `unstable_sentryVitePluginOptions` correctly ([#16156](https://github.com/getsentry/sentry-javascript/pull/16156))
30+
- fix(react): Fix Redux integration failing with reducer injection ([#16106](https://github.com/getsentry/sentry-javascript/pull/16106))
31+
- fix(remix): Add ESM-compatible exports ([#16124](https://github.com/getsentry/sentry-javascript/pull/16124))
32+
- fix(remix): Avoid rewrapping root loader. ([#16136](https://github.com/getsentry/sentry-javascript/pull/16136))
33+
34+
Work in this release was contributed by @AntoineDuComptoirDesPharmacies. Thank you for your contribution!
35+
36+
## 9.14.0
37+
38+
### Important Changes
39+
40+
- **feat: Add Supabase Integration ([#15719](https://github.com/getsentry/sentry-javascript/pull/15719))**
41+
42+
This PR adds Supabase integration to `@sentry/core`, allowing automatic instrumentation of Supabase client operations (database queries and authentication) for performance monitoring and error tracking.
43+
44+
- **feat(nestjs): Gracefully handle RPC scenarios in `SentryGlobalFilter` ([#16066](https://github.com/getsentry/sentry-javascript/pull/16066))**
45+
46+
This PR adds better RPC exception handling to `@sentry/nestjs`, preventing application crashes while still capturing errors and warning users when a dedicated filter is needed. The implementation gracefully handles the 'rpc' context type in `SentryGlobalFilter` to improve reliability in hybrid applications.
47+
48+
- **feat(react-router): Trace propagation ([#16070](https://github.com/getsentry/sentry-javascript/pull/16070))**
49+
50+
This PR adds trace propagation to `@sentry/react-router` by providing utilities to inject trace meta tags into HTML headers and offering a pre-built Sentry-instrumented request handler, improving distributed tracing capabilities across page loads.
51+
52+
### Other Changes
53+
54+
- feat(deps): Bump @prisma/instrumentation from 6.5.0 to 6.6.0 ([#16102](https://github.com/getsentry/sentry-javascript/pull/16102))
55+
- feat(nextjs): Improve server component data ([#15996](https://github.com/getsentry/sentry-javascript/pull/15996))
56+
- feat(nuxt): Log when adding HTML trace meta tags ([#16044](https://github.com/getsentry/sentry-javascript/pull/16044))
57+
- fix(node): Make body capturing more robust ([#16105](https://github.com/getsentry/sentry-javascript/pull/16105))
58+
- ref(node): Log when incoming request bodies are being captured ([#16104](https://github.com/getsentry/sentry-javascript/pull/16104))
59+
60+
## 9.13.0
61+
62+
### Important Changes
63+
64+
- **feat(node): Add support for winston logger ([#15983](https://github.com/getsentry/sentry-javascript/pull/15983))**
65+
66+
Sentry is adding support for [structured logging](https://github.com/getsentry/sentry-javascript/discussions/15916). In this release we've added support for sending logs to Sentry via the [winston](https://github.com/winstonjs/winston) logger to the Sentry Node SDK (and SDKs that use the Node SDK under the hood like `@sentry/nestjs`). The Logging APIs in the Sentry SDK are still experimental and subject to change.
67+
68+
```js
69+
const winston = require('winston');
70+
const Transport = require('winston-transport');
71+
72+
const transport = Sentry.createSentryWinstonTransport(Transport);
73+
74+
const logger = winston.createLogger({
75+
transports: [transport],
76+
});
77+
```
78+
79+
- **feat(core): Add `wrapMcpServerWithSentry` to instrument MCP servers from `@modelcontextprotocol/sdk` ([#16032](https://github.com/getsentry/sentry-javascript/pull/16032))**
80+
81+
The Sentry SDK now supports instrumenting MCP servers from the `@modelcontextprotocol/sdk` package. Compatible with versions `^1.9.0` of the `@modelcontextprotocol/sdk` package.
82+
83+
```js
84+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
85+
86+
// Create an MCP server
87+
const server = new McpServer({
88+
name: 'Demo',
89+
version: '1.0.0',
90+
});
91+
92+
// Use the instrumented server in your application
93+
const instrumentedServer = Sentry.wrapMcpServerWithSentry(server);
94+
```
95+
96+
- **feat(core): Move console integration into core and add to cloudflare/vercel-edge ([#16024](https://github.com/getsentry/sentry-javascript/pull/16024))**
97+
98+
Console instrumentation has been added to `@sentry/cloudflare` and `@sentry/nextjs` Edge Runtime and is enabled by default. Now calls to the console object will be captured as breadcrumbs for those SDKs.
99+
100+
- **feat(bun): Support new `Bun.serve` APIs ([#16035](https://github.com/getsentry/sentry-javascript/pull/16035))**
101+
102+
Bun `1.2.6` and above have a new `Bun.serve` API, which the Bun SDK now supports. The SDK instruments the new routes object that can be used to define routes for the server.
103+
104+
Thanks to @Jarred-Sumner for helping us get this supported!
105+
106+
### Other Changes
107+
108+
- feat(browser): Warn on duplicate `browserTracingIntegration` ([#16042](https://github.com/getsentry/sentry-javascript/pull/16042))
109+
- feat(core): Allow delayed sending with offline transport ([#15937](https://github.com/getsentry/sentry-javascript/pull/15937))
110+
- feat(deps): Bump @sentry/webpack-plugin from 3.2.4 to 3.3.1 ([#16057](https://github.com/getsentry/sentry-javascript/pull/16057))
111+
- feat(vue): Apply stateTransformer to attachments in Pinia Plugin ([#16034](https://github.com/getsentry/sentry-javascript/pull/16034))
112+
- fix(core): Run `beforeSendLog` after we process log ([#16019](https://github.com/getsentry/sentry-javascript/pull/16019))
113+
- fix(nextjs): Don't show turbopack warning for newer Next.js canaries ([#16065](https://github.com/getsentry/sentry-javascript/pull/16065))
114+
- fix(nextjs): Include patch version 0 for min supported 15.3.0 ([#16026](https://github.com/getsentry/sentry-javascript/pull/16026))
115+
- fix(node): Ensure late init works with all integrations ([#16016](https://github.com/getsentry/sentry-javascript/pull/16016))
116+
- fix(react-router): Pass `unstable_sentryVitePluginOptions` to cli instance ([#16033](https://github.com/getsentry/sentry-javascript/pull/16033))
117+
- fix(serverless-aws): Overwrite root span name with GraphQL if set ([#16010](https://github.com/getsentry/sentry-javascript/pull/16010))
118+
13119
## 9.12.0
14120

15121
### Important Changes

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/addBreadcrumb/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect } from '@playwright/test';
2-
32
import { sentryTest } from '../../../../utils/fixtures';
43
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
54

dev-packages/browser-integration-tests/loader-suites/loader/noOnLoad/captureException/test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from '@playwright/test';
22
import { SDK_VERSION } from '@sentry/browser';
3-
43
import { sentryTest } from '../../../../utils/fixtures';
54
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
65

0 commit comments

Comments
 (0)