Skip to content

meta(changelog): Update changelog for 9.33.0 #16750

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 13 commits into from
Jun 27, 2025
Merged

Conversation

andreiborza
Copy link
Member

No description provided.

mydea and others added 12 commits June 25, 2025 13:03
)

While we eventually want to move the cloudflare SDK over to use OTEL
fully under the hood, this PR is an attempt for an intermediate solution
to allow us to still get access to e.g. the vercelAi integration, which
emits spans via `@opentelemetry/core`.

For this, we register a custom trace provider in the cloudflare SDK
which then just calls our own `startSpan` APIs. This should translate
spans to Sentry spans. The only downside is that it does not handle a
`context` being passed in for spans, so this will _not_ work for all
integrations and cases etc. But it should work for simple cases like the
`ai` package using `trace.startActiveSpan`.

TODO: Test this, verify this makes sense, ...
Adding a test for a support case, to ensure that new trace are correctly
sampled.

---------

Co-authored-by: Sigrid Huemer <32902192+s1gr1d@users.noreply.github.com>
)

resolves
https://github.com/getsentry/sentry-javascript/security/dependabot/538
resolves
https://github.com/getsentry/sentry-javascript/security/dependabot/534
resolves
https://github.com/getsentry/sentry-javascript/security/dependabot/533

Next.js dependencies were upgraded to address a security vulnerability
concerning authorization bypass in middleware.

* The `next` dependency in `packages/nextjs/package.json` was updated
from `13.2.0` to `13.5.9`.
*   Test applications were also patched:
*
`dev-packages/e2e-tests/test-applications/create-next-app/package.json`
had `next` upgraded from `14.0.0` to `14.2.25`.
* `dev-packages/e2e-tests/test-applications/nextjs-13/package.json` had
`next` upgraded from `13.5.7` to `13.5.9`.
* The `yarn.lock` file was subsequently updated by running `yarn
install` to reflect these new dependency versions and their transitive
updates, including `@swc/helpers` and `postcss`.
* Code formatting issues were resolved with `yarn fix`. Validation
checks were run, confirming the upgrades while noting pre-existing,
unrelated failures in other packages.

This directly addresses the vulnerability, ensuring the codebase uses
patched Next.js versions.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
We have added the 'ai' package to our list of externalized packages for
instrumentation purposes. Unfortunately this causes Next.js to
incorrectly evaluate the Vercel AI SDK's conditional exports -
specifically the `react-server` export condition isn't properly handled
when the package is externalized, resulting in client-side code being
loaded in server components instead of the server-side functions.
This adds a `modules` and `composables` folder to the Nuxt 4 E2E test.
The main purpose is to check, that the build runs through without
problems.

Additionally, the versions were updated (as this is the Nuxt 4 test and
it should use the latest versions for the compatibility mode).

Related to this:
#15204 (comment)
…16732)

This is on top of
#16714.

This adds the `vercelAiIntegration` to the cloudflare SDK, as well as to
the vercel-edge SDK.

I moved the critical code from node to core package, so we can reuse
this (the code to process spans).

The integration is not added by default, but needs to be added manually.
then it will "force" add the event processors etc. We cannot auto-detect
the `ai` package, sadly, because this does not work in workers 😢 so for
now it needs to be added manually to avoid overhead for users that don't
need this.

@andreiborza let's verify that this works when deployed to cloudflare,
esp. also the auto-enablement via the modules integration etc 🤔

---------

Co-authored-by: Andrei Borza <andrei.borza@sentry.io>
Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
Resolves: #15621
Adds instrumentation for https://github.com/porsager/postgres 

Sampled event: (Emitted from the integration tests added here):
[Link](https://sentry-sdks.sentry.io/insights/backend/summary/trace/72c94a37c9907cc2c7f4bef9c56b0196/?fov=0%2C32.09936037659645&node=span-b3505cfada7dea73&project=5429215&query=transaction.op%3Atransaction&referrer=insights-backend-overview&source=performance_transaction_summary&statsPeriod=5m&timestamp=1750718572&transaction=Test%20Transaction)

This implementation patches `connection` and `query` classes to create
database transactions:

- From `connection`, we pick up the database `name`, `url` and `port` to
use in the db query spans
- For each `query` instance, we create a `db` span
- This implementation does not create a separate span for each `cursor`
used

Initially, I implemented a way to capture `db.operation` (as `command`
is available when the query resolves) but it seems the ingestion
extracts the operation anyway, so I removed it.

Also added sanitization/normalization for raw query, which we use as the
span description, also seems to be normalized by the ingestion engine.
We can remove it too if it's not worth having, as it creates a
possibly-unnecessary performance overhead on the SDK side.

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This PR aim is to send events if all (if any was scheduled) waitUntil
promises were finished. Otherwise you may loose events.
This fixes: #16559

---------

Co-authored-by: cod1k <cod1k@centro.team>
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #16681

Co-authored-by: AbhiPrasad <18689448+AbhiPrasad@users.noreply.github.com>
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Jun 27, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.99 kB added added
@sentry/browser - with treeshaking flags 23.76 kB added added
@sentry/browser (incl. Tracing) 38.84 kB added added
@sentry/browser (incl. Tracing, Replay) 76.98 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.07 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 81.74 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 93.83 kB added added
@sentry/browser (incl. Feedback) 40.75 kB added added
@sentry/browser (incl. sendFeedback) 28.7 kB added added
@sentry/browser (incl. FeedbackAsync) 33.59 kB added added
@sentry/react 25.76 kB added added
@sentry/react (incl. Tracing) 40.84 kB added added
@sentry/vue 28.36 kB added added
@sentry/vue (incl. Tracing) 40.7 kB added added
@sentry/svelte 24.01 kB added added
CDN Bundle 25.5 kB added added
CDN Bundle (incl. Tracing) 38.92 kB added added
CDN Bundle (incl. Tracing, Replay) 74.83 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 80.29 kB added added
CDN Bundle - uncompressed 74.5 kB added added
CDN Bundle (incl. Tracing) - uncompressed 115.42 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 229.47 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 242.3 kB added added
@sentry/nextjs (client) 42.47 kB added added
@sentry/sveltekit (client) 39.33 kB added added
@sentry/node 154.29 kB added added
@sentry/node - without tracing 98.63 kB added added
@sentry/aws-serverless 124.4 kB added added

Copy link

codecov bot commented Jun 27, 2025

❌ Unsupported file format

Upload processing failed due to unsupported file format. Please review the parser error message:
Error deserializing json

Caused by:
expected value at line 1 column 1

For more help, visit our troubleshooting guide.

CHANGELOG.md Outdated
Comment on lines 20 to 23
Sentry.vercelAIIntegration({
recordInputs: true,
recordOutputs: true,
}),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Sentry.vercelAIIntegration({
recordInputs: true,
recordOutputs: true,
}),
Sentry.vercelAIIntegration(),

these options do not exist there, they are only used where we can monkey patch 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, thanks. Updated.

@andreiborza andreiborza force-pushed the prepare-release/9.33.0 branch from d433747 to e8eb291 Compare June 27, 2025 07:37
@andreiborza andreiborza merged commit c07f2a2 into master Jun 27, 2025
161 checks passed
@andreiborza andreiborza deleted the prepare-release/9.33.0 branch June 27, 2025 07:49
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.

9 participants