Skip to content

Conversation

@chargome
Copy link
Member

No description provided.

s1gr1d and others added 11 commits November 10, 2025 13:31
…cation) (#18045)

This removes the automatic truncation of the span description. Now, all
cache keys are set in the description.

part of #17389
[Gitflow] Merge master into develop
This PR:
- Splits the browser build output into separate development and
production builds
- References these two builds in the package.json exports
- Adds a Rollup plugin to production builds which can strip out code
wrapped with development-only magic comments
- Adds the spotlight integration to the default integrations in
development mode only
- Also adds this plugin for browser bundles so spotlight doesn't get
included in CDN bundles
…atus from event with exceptions (#18137)

This PR fixes an oversight in our session update logic when we update
the SDK's session status while processing an error event. Previously,
we'd always set `status: 'crashed'` as soon as the top-level
`event.level` field was set to `'fatal'` (added in
#15072). However,
this disregarded the case where the level was initially `'fatal'` but
later on the SDK or users decided to set the
`event.exceptions.values[i].mechanism.handled` field to `true`.

Simplest reproduction:

```
Sentry.captureException(new Error('test'), { captureContext: { level: 'fatal' } });
```

This PR changes the update logic to only look at the event mechanisms if
the event contained exceptions. I _think_ this is still compatible with
#15072 because the PR suggests we only care about `event.level ===
'fatal'` if no exceptions are on the event. But I'd appreciate a second
pair of eyes on this (cc @timfish).
Removes the remaining places where we truncate, although not needed.

part of #17389
Whenever we add a new module to the monorepo, the version does not keep
up with new releases before it is merged...
)

The main OpenAI APIs are the
[completions](https://platform.openai.com/docs/api-reference/completions/create)
and
[responses](https://platform.openai.com/docs/api-reference/responses/create)
API. Currently we truncate messages sent to the API only if the user
input is an array of strings. This works for the completions, but not
for the responses API (where the input is a plain string).

Updated the truncation logic to also truncate if the input is a plain
string (+ test to verify everything works now as expected).
Adds remaining node-based exports for metrics

closes #18152
@chargome chargome self-assigned this Nov 11, 2025
@chargome chargome requested review from Lms24, andreiborza and s1gr1d and removed request for Lms24 November 11, 2025 13:24
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.59 kB added added
@sentry/browser - with treeshaking flags 23.09 kB added added
@sentry/browser (incl. Tracing) 41.23 kB added added
@sentry/browser (incl. Tracing, Profiling) 45.5 kB added added
@sentry/browser (incl. Tracing, Replay) 79.7 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.37 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 84.39 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 96.56 kB added added
@sentry/browser (incl. Feedback) 41.27 kB added added
@sentry/browser (incl. sendFeedback) 29.26 kB added added
@sentry/browser (incl. FeedbackAsync) 34.19 kB added added
@sentry/react 26.28 kB added added
@sentry/react (incl. Tracing) 43.18 kB added added
@sentry/vue 29.07 kB added added
@sentry/vue (incl. Tracing) 43 kB added added
@sentry/svelte 24.6 kB added added
CDN Bundle 26.89 kB added added
CDN Bundle (incl. Tracing) 41.78 kB added added
CDN Bundle (incl. Tracing, Replay) 78.3 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 83.77 kB added added
CDN Bundle - uncompressed 78.84 kB added added
CDN Bundle (incl. Tracing) - uncompressed 123.94 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 239.97 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 252.73 kB added added
@sentry/nextjs (client) 45.31 kB added added
@sentry/sveltekit (client) 41.62 kB added added
@sentry/node-core 50.76 kB added added
@sentry/node 157.84 kB added added
@sentry/node - without tracing 92.64 kB added added
@sentry/aws-serverless 106.4 kB added added

@github-actions
Copy link
Contributor

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,867 - - added
GET With Sentry 1,418 16% - added
GET With Sentry (error only) 6,192 70% - added
POST Baseline 1,204 - - added
POST With Sentry 528 44% - added
POST With Sentry (error only) 1,059 88% - added
MYSQL Baseline 3,386 - - added
MYSQL With Sentry 464 14% - added
MYSQL With Sentry (error only) 2,736 81% - added

@andreiborza andreiborza merged commit d5a5009 into master Nov 11, 2025
192 checks passed
@andreiborza andreiborza deleted the prepare-release/10.25.0 branch November 11, 2025 13:43
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.

7 participants