Skip to content

meta(changelog): Update changelog for 9.40.0 #17039

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 31 commits into from
Jul 17, 2025
Merged

Conversation

andreiborza
Copy link
Member

No description provided.

AbhiPrasad and others added 19 commits July 15, 2025 09:51
In https://github.com/vercel/ai/releases/tag/ai%404.3.17 of the `ai`
SDK, provider metadata got exposed
(vercel/ai@a288694)

This is included in the `ai.response.providerMetadata` property.

To get more detailed, info, we parse `ai.response.providerMetadata` and
attach attributes as appropriate. Still need some help with the naming.

resolves
https://linear.app/getsentry/issue/JS-661/add-support-for-cached-and-reasoning-tokens
Instead, we can just use the parameter-less version of try-catch. In
future versions of eslint, this will be disallowed, so extracting this
out.
A future version of eslint flagged & auto-fixed these, extracting this
out for easier review.
resolves #16943

Just give a quick double check to
`packages/opentelemetry/test/helpers/initOtel.ts` to make sure it makes
sense.
)

Fix #16786
+ e2e tests for cloudflare workers

- [ ] If you've added code that should be tested, please add tests.
- [x] Ensure your code lints and the test suite passes (`yarn lint`) &
(`yarn test`).

---------

Co-authored-by: cod1k <cod1k@centro.team>
trying to un-stupidify cursor in some cases, esp. background tasks.
@andreiborza andreiborza requested review from a team as code owners July 16, 2025 10:09
@andreiborza andreiborza force-pushed the prepare-release/9.40.0 branch from 140701a to 6572f52 Compare July 16, 2025 10:15
Copy link
Contributor

github-actions bot commented Jul 16, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.78 kB added added
@sentry/browser - with treeshaking flags 22.34 kB added added
@sentry/browser (incl. Tracing) 39.66 kB added added
@sentry/browser (incl. Tracing, Replay) 77.79 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.59 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 82.49 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 94.59 kB added added
@sentry/browser (incl. Feedback) 40.48 kB added added
@sentry/browser (incl. sendFeedback) 28.46 kB added added
@sentry/browser (incl. FeedbackAsync) 33.36 kB added added
@sentry/react 25.54 kB added added
@sentry/react (incl. Tracing) 41.62 kB added added
@sentry/vue 28.23 kB added added
@sentry/vue (incl. Tracing) 41.45 kB added added
@sentry/svelte 23.81 kB added added
CDN Bundle 25.18 kB added added
CDN Bundle (incl. Tracing) 39.42 kB added added
CDN Bundle (incl. Tracing, Replay) 75.42 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 80.89 kB added added
CDN Bundle - uncompressed 73.44 kB added added
CDN Bundle (incl. Tracing) - uncompressed 116.86 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 231 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 243.81 kB added added
@sentry/nextjs (client) 43.66 kB added added
@sentry/sveltekit (client) 40.08 kB added added
@sentry/node 168.93 kB added added
@sentry/node - without tracing 100.2 kB added added
@sentry/aws-serverless 128.36 kB added added

resolves #16905

also renames the file to be `debug-logger.ts` instead of `logger.ts` to
make usage inside `@sentry/core` a little easier to understand.

Added a note to `MIGRATION.md`, but let me know if I should remove that.

---------

Co-authored-by: Francesco Gringl-Novy <francesco.novy@sentry.io>
@AbhiPrasad
Copy link
Member

merged in #17040

@andreiborza andreiborza marked this pull request as draft July 16, 2025 21:42
Lms24 and others added 9 commits July 17, 2025 09:29
…ad (#16981)

Add two Browser SDK APIs to let the main thread know about
debugIds of worker files:

- `webWorkerIntegration({worker})` to be used in the main thread
- `registerWebWorker(self)` to be used in the web worker
- unit tests for the two APIs
- integration test testing the `webWorkerIntegration`
- e2e test demonstrating correct usage of both APIs together
…#17044)

Make sure we use of Cloudflare's `waitUntil` function which
fortunately is available within the error handler hook. This fixes
error reporting for streamed server responses on Clourdlfare,
 where the returned promise rejects after the initial response was sent.
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #17049

Co-authored-by: Lms24 <8420481+Lms24@users.noreply.github.com>
#16790)

The error code 137 is a very common error when running E2E tests.
Starting colima only with `colima start` often results in too little
memory and it makes sense to add a more descriptive message here.

To make it work with Colima, it's better to start it with `colima start
--cpu 10 --memory 12 --network-address`
This PR adds official support for instrumenting OpenAI SDK calls in Node
with Sentry tracing, following OpenTelemetry semantic conventions for
Generative AI.

We currently instrument the following OpenAI SDK methods:

- client.chat.completions.create() - For chat-based completions
- client.responses.create() - For the responses API

Currently supported:

- Node.js - Mentioned methods are supported in this PR 
- ESM and CJS - Both module systems are supported 

The openAIIntegration() accepts the following options:
```
// The integration respects your sendDefaultPii client option
interface OpenAiOptions {
  recordInputs?: boolean;   // Whether to record prompt messages
  recordOutputs?: boolean;  // Whether to record response text
}
```

Example:
```
Sentry.init({
  dsn: '__DSN__',
  sendDefaultPii: false, // Even with PII disabled globally
  integrations: [
    Sentry.openAIIntegration({
      recordInputs: true,    // Force recording prompts
      recordOutputs: true,   // Force recording responses
    }),
  ],
});
```
@andreiborza andreiborza force-pushed the prepare-release/9.40.0 branch from 6572f52 to 53a6f1e Compare July 17, 2025 11:49
@andreiborza andreiborza requested review from Lms24 and chargome July 17, 2025 11:49
@andreiborza andreiborza marked this pull request as ready for review July 17, 2025 11:54
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the note about the web worker change!

CHANGELOG.md Outdated
This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:

- `webWorkerIntegration({worker})` to be used in the main thread
- `registerWebWorker(self)` to be used in the web worker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: small API correction

Suggested change
- `registerWebWorker(self)` to be used in the web worker
- `registerWebWorker({self})` to be used in the web worker

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 fixed

@andreiborza andreiborza force-pushed the prepare-release/9.40.0 branch from 53a6f1e to 24cdfd3 Compare July 17, 2025 12:13
CHANGELOG.md Outdated
```js
Sentry.init({
dsn: '__DSN__',
sendDefaultPii: false, // Even with PII disabled globally
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would delete line 60 and add a comment // The integration respects your sendDefaultPii client option under line 57

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated 👍

@andreiborza andreiborza force-pushed the prepare-release/9.40.0 branch from 24cdfd3 to d4ab7c0 Compare July 17, 2025 12:23
@andreiborza andreiborza merged commit a12c5a6 into master Jul 17, 2025
326 of 330 checks passed
@andreiborza andreiborza deleted the prepare-release/9.40.0 branch July 17, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants