Skip to content

Commit d7766e9

Browse files
Merge pull request #17060 from getsentry/master
[Gitflow] Merge master into develop
2 parents ad5e7c3 + 9cda9ce commit d7766e9

File tree

55 files changed

+220
-150
lines changed

Some content is hidden

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

55 files changed

+220
-150
lines changed

CHANGELOG.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,76 @@
44

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

7+
## 9.40.0
8+
9+
### Important Changes
10+
11+
- **feat(browser): Add debugId sync APIs between web worker and main thread ([#16981](https://github.com/getsentry/sentry-javascript/pull/16981))**
12+
13+
This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:
14+
15+
- `webWorkerIntegration({worker})` to be used in the main thread
16+
- `registerWebWorker({self})` to be used in the web worker
17+
18+
```js
19+
// main.js
20+
Sentry.init({...})
21+
22+
const worker = new MyWorker(...);
23+
24+
Sentry.addIntegration(Sentry.webWorkerIntegration({ worker }));
25+
26+
worker.addEventListener('message', e => {...});
27+
```
28+
29+
```js
30+
// worker.js
31+
Sentry.registerWebWorker({ self });
32+
33+
self.postMessage(...);
34+
```
35+
36+
- **feat(core): Deprecate logger in favor of debug ([#17040](https://github.com/getsentry/sentry-javascript/pull/17040))**
37+
38+
The internal SDK `logger` export from `@sentry/core` has been deprecated in favor of the `debug` export. `debug` only exposes `log`, `warn`, and `error` methods but is otherwise identical to `logger`. Note that this deprecation does not affect the `logger` export from other packages (like `@sentry/browser` or `@sentry/node`) which is used for Sentry Logging.
39+
40+
```js
41+
import { logger, debug } from '@sentry/core';
42+
43+
// before
44+
logger.info('This is an info message');
45+
46+
// after
47+
debug.log('This is an info message');
48+
```
49+
50+
- **feat(node): Add OpenAI integration ([#17022](https://github.com/getsentry/sentry-javascript/pull/17022))**
51+
52+
This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:
53+
54+
- `client.chat.completions.create()` - For chat-based completions
55+
- `client.responses.create()` - For the responses API
56+
57+
```js
58+
// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options
59+
60+
Sentry.init({
61+
dsn: '__DSN__',
62+
integrations: [
63+
Sentry.openAIIntegration({
64+
recordInputs: true, // Force recording prompts
65+
recordOutputs: true, // Force recording responses
66+
}),
67+
],
68+
});
69+
```
70+
71+
### Other Changes
72+
73+
- feat(node-core): Expand `@opentelemetry/instrumentation` range to cover `0.203.0` ([#17043](https://github.com/getsentry/sentry-javascript/pull/17043))
74+
- fix(cloudflare): Ensure errors get captured from durable objects ([#16838](https://github.com/getsentry/sentry-javascript/pull/16838))
75+
- fix(sveltekit): Ensure server errors from streamed responses are sent ([#17044](https://github.com/getsentry/sentry-javascript/pull/17044))
76+
777
Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!
878

979
## 9.39.0

dev-packages/browser-integration-tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/browser-integration-tests",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"main": "index.js",
55
"license": "MIT",
66
"engines": {
@@ -43,7 +43,7 @@
4343
"@babel/preset-typescript": "^7.16.7",
4444
"@playwright/test": "~1.53.2",
4545
"@sentry-internal/rrweb": "2.34.0",
46-
"@sentry/browser": "9.39.0",
46+
"@sentry/browser": "9.40.0",
4747
"@supabase/supabase-js": "2.49.3",
4848
"axios": "1.8.2",
4949
"babel-loader": "^8.2.2",

dev-packages/bundle-analyzer-scenarios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/bundle-analyzer-scenarios",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"description": "Scenarios to test bundle analysis with",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/dev-packages/bundle-analyzer-scenarios",

dev-packages/clear-cache-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/clear-cache-gh-action",
33
"description": "An internal Github Action to clear GitHub caches.",
4-
"version": "9.39.0",
4+
"version": "9.40.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/e2e-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/e2e-tests",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

dev-packages/external-contributor-gh-action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry-internal/external-contributor-gh-action",
33
"description": "An internal Github Action to add external contributors to the CHANGELOG.md file.",
4-
"version": "9.39.0",
4+
"version": "9.40.0",
55
"license": "MIT",
66
"engines": {
77
"node": ">=18"

dev-packages/node-core-integration-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-core-integration-tests",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -34,8 +34,8 @@
3434
"@opentelemetry/resources": "^1.30.1",
3535
"@opentelemetry/sdk-trace-base": "^1.30.1",
3636
"@opentelemetry/semantic-conventions": "^1.34.0",
37-
"@sentry/core": "9.39.0",
38-
"@sentry/node-core": "9.39.0",
37+
"@sentry/core": "9.40.0",
38+
"@sentry/node-core": "9.40.0",
3939
"body-parser": "^1.20.3",
4040
"cors": "^2.8.5",
4141
"cron": "^3.1.6",

dev-packages/node-integration-tests/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/node-integration-tests",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"license": "MIT",
55
"engines": {
66
"node": ">=18"
@@ -30,9 +30,9 @@
3030
"@nestjs/common": "11.1.3",
3131
"@nestjs/core": "11.1.3",
3232
"@nestjs/platform-express": "11.1.3",
33-
"@sentry/aws-serverless": "9.39.0",
34-
"@sentry/core": "9.39.0",
35-
"@sentry/node": "9.39.0",
33+
"@sentry/aws-serverless": "9.40.0",
34+
"@sentry/core": "9.40.0",
35+
"@sentry/node": "9.40.0",
3636
"@types/mongodb": "^3.6.20",
3737
"@types/mysql": "^2.15.21",
3838
"@types/pg": "^8.6.5",

dev-packages/opentelemetry-v2-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/opentelemetry-v2-tests",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"private": true,
55
"description": "Tests for @sentry/opentelemetry with OpenTelemetry v2",
66
"engines": {

dev-packages/rollup-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sentry-internal/rollup-utils",
3-
"version": "9.39.0",
3+
"version": "9.40.0",
44
"description": "Rollup utilities used at Sentry for the Sentry JavaScript SDK",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/rollup-utils",

0 commit comments

Comments
 (0)