meta(changelog): Update changelog for 9.40.0#17039
Merged
andreiborza merged 31 commits intomasterfrom Jul 17, 2025
Merged
Conversation
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>
resolves #16949
resolves #16955
resolves #16954
resolves #16950
trying to un-stupidify cursor in some cases, esp. background tasks.
140701a to
6572f52
Compare
chargome
approved these changes
Jul 16, 2025
Contributor
size-limit report 📦
|
Lms24
approved these changes
Jul 16, 2025
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>
Contributor
|
merged in #17040 |
…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.
oven-sh/bun#5091 has been completed for some time
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
}),
],
});
```
6572f52 to
53a6f1e
Compare
Lms24
approved these changes
Jul 17, 2025
Member
Lms24
left a comment
There was a problem hiding this comment.
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 |
Member
There was a problem hiding this comment.
l: small API correction
Suggested change
| - `registerWebWorker(self)` to be used in the web worker | |
| - `registerWebWorker({self})` to be used in the web worker |
53a6f1e to
24cdfd3
Compare
RulaKhaled
reviewed
Jul 17, 2025
CHANGELOG.md
Outdated
| ```js | ||
| Sentry.init({ | ||
| dsn: '__DSN__', | ||
| sendDefaultPii: false, // Even with PII disabled globally |
Contributor
There was a problem hiding this comment.
I would delete line 60 and add a comment // The integration respects your sendDefaultPii client option under line 57
24cdfd3 to
d4ab7c0
Compare
RulaKhaled
approved these changes
Jul 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.