-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Comparing changes
Open a pull request
base repository: getsentry/sentry-javascript
base: 9.8.0
head repository: getsentry/sentry-javascript
compare: 9.9.0
- 19 commits
- 123 files changed
- 9 contributors
Commits on Mar 21, 2025
-
ref: Avoid some usage of
dropUndefinedKeys()
(#15757)This gets rid of some unnecessary invocations of `dropUndefinedKeys()` that we have.
Configuration menu - View commit details
-
Copy full SHA for 267ebe0 - Browse repository at this point
Copy the full SHA 267ebe0View commit details -
getsentry-bot committed
Mar 21, 2025 Loading Loading status checks…Configuration menu - View commit details
-
Copy full SHA for fb4810c - Browse repository at this point
Copy the full SHA fb4810cView commit details -
feat(browser): Add
previous_trace
span links (#15569)This PR adds logic to set the `previous_trace ` span link on root spans (via `browserTracingIntegration`). - added `linkPreviousTrace` integration option to control the trace linking behaviour: - everything is implemented within `browserTracingIntegration`, meaning there's no bundle size hit for error-only users or users who only send manual spans (the latter is a tradeoff but I think it's a fair one) - added unit and integration tests for a bunch of scenarios closes #14992 UPDATE: I rewrote the public API options from having two options (`enablePreviousTrace` and `persistPreviousTrace`) to only one which controls both aspects.
Configuration menu - View commit details
-
Copy full SHA for 1a4fa0c - Browse repository at this point
Copy the full SHA 1a4fa0cView commit details -
Merge pull request #15778 from getsentry/master
[Gitflow] Merge master into develop
Configuration menu - View commit details
-
Copy full SHA for 79a3384 - Browse repository at this point
Copy the full SHA 79a3384View commit details -
test(e2e): Fix failing nextjs-t3 e2e test app (#15785)
trpc/trpc#6617 removed an unstable API we used in the app. I just switched it over to use the stable replacement
Configuration menu - View commit details
-
Copy full SHA for 0c21efa - Browse repository at this point
Copy the full SHA 0c21efaView commit details -
Configuration menu - View commit details
-
Copy full SHA for e242c17 - Browse repository at this point
Copy the full SHA e242c17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67db14b - Browse repository at this point
Copy the full SHA 67db14bView commit details -
feat(core): Optimize
dropUndefinedKeys
(#15760)Updates the implementation of `dropUndefinedKeys`: - added early returns - used for loops in case of larger data structures - handle array case before object case to avoid calls to `isPojo` - simplified `isPojo` by checking [Object.prototype.constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor#description) ref #15725
Configuration menu - View commit details
-
Copy full SHA for ab16123 - Browse repository at this point
Copy the full SHA ab16123View commit details -
perf(nestjs): Remove usage of addNonEnumerableProperty (#15766)
ref #15725 (comment) Similar to the work done in #15765 we can avoid usage of `addNonEnumerableProperty` with usage of a `WeakSet`.
Configuration menu - View commit details
-
Copy full SHA for 75f7b93 - Browse repository at this point
Copy the full SHA 75f7b93View commit details -
feat(browser): Add logger.X methods to browser SDK (#15763)
ref #15526 Continuing off the work from #15717, this PR adds the logging public API to the Browser SDK. It also adds a basic flushing strategy to the SDK that is timeout based. This is done to help save bundle size. The main file added was `log.ts`. This has three areas to look at: 1. The logger methods for `trace`, `debug`, `info`, `warn`, `error`, `fatal` (the log severity levels) as well as an internal capture log helper all these methods call. 2. `addFlushingListeners` which adds listeners to flush the logs buffer on client flush and document visibility hidden. 3. a flush timeout that flushes logs after X seconds, which gets restarted when new logs are captured. I also removed any logs logic from the `BrowserClient`, which should ensure this stays as bundle size efficient as possible. Usage: ```js import * as Sentry from "@sentry/browser"; Sentry.init({ dsn: "your-dsn-here", _experiments: { enableLogs: true // This is required to use the logging features } }); // Trace level (lowest severity) Sentry.logger.trace("This is a trace message", { userId: 123 }); // Debug level Sentry.logger.debug("This is a debug message", { component: "UserProfile" }); // Info level Sentry.logger.info("User logged in successfully", { userId: 123 }); // Warning level Sentry.logger.warn("API response was slow", { responseTime: 2500 }); // Error level Sentry.logger.error("Failed to load user data", { userId: 123, errorCode: 404 }); // Critical level Sentry.logger.critical("Database connection failed", { dbHost: "primary-db" }); // Fatal level (highest severity) Sentry.logger.fatal("Application is shutting down unexpectedly", { memory: "exhausted" }); ```
Configuration menu - View commit details
-
Copy full SHA for e55b8ee - Browse repository at this point
Copy the full SHA e55b8eeView commit details -
feat(core): Add
parseStringToURL
method (#15768)Now that we support ES2020 (aka not IE11 anymore) and Node.js 18+, we can get rid of `parseUrl` in favor of a method that just uses the built-in URL object. This will save us some bundle size (given we can remove that regex), and we get performance benefits from using native code. Instead of just blanket replacing `parseUrl`, we'll slowly convert all it's usages to using a new helper, `parseStringToURL`. Given we are updating the core package, I also went ahead and converted `parseUrl` usage in `packages/core/src/fetch.ts`
Configuration menu - View commit details
-
Copy full SHA for ba5993c - Browse repository at this point
Copy the full SHA ba5993cView commit details
Commits on Mar 22, 2025
-
feat(node): Add fastify
shouldHandleError
(#15771)Supercedes #13198 resolves #13197 Aligns fastify error handler with the express one. 1. Adds `shouldHandleError` to allow users to configure if errors should be captured 2. Makes sure the default `shouldHandleError` does not capture errors for 4xx and 3xx status codes. ## Usage ```js setupFastifyErrorHandler(app, { shouldHandleError(_error, _request, reply) { return statusCode >= 500 || statusCode <= 399; }, }); ```
Configuration menu - View commit details
-
Copy full SHA for 50d2514 - Browse repository at this point
Copy the full SHA 50d2514View commit details
Commits on Mar 24, 2025
-
ref: Remove some usages of
dropUndefinedKeys()
(#15781)In some places this should not really be needed, so we can skip this.
Configuration menu - View commit details
-
Copy full SHA for 57f04e0 - Browse repository at this point
Copy the full SHA 57f04e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 006479c - Browse repository at this point
Copy the full SHA 006479cView commit details -
fix(nuxt): Delete no longer needed Nitro 'close' hook (#15790)
Due to PR #15710 the Sentry server config is only processed inside the Nitro-part of Nuxt and the server config file is emitted through the Rollup plugin. It is not needed anymore to copy-paste the file manually (this has been the case before as the file was added to the `.nuxt` folder - as it was processed by Nuxt, not Nitro-only). This fixes the "no such file" error [posted in this comment](#13330 (comment)). closes #13330
Configuration menu - View commit details
-
Copy full SHA for 79ff8f2 - Browse repository at this point
Copy the full SHA 79ff8f2View commit details -
feat(browser): Attach host as part of error message to "Failed to fet…
Configuration menu - View commit details
-
Copy full SHA for 0cf8ec2 - Browse repository at this point
Copy the full SHA 0cf8ec2View commit details -
meta: Update changelog for 9.9.0
swap ordering
Configuration menu - View commit details
-
Copy full SHA for bb358cf - Browse repository at this point
Copy the full SHA bb358cfView commit details -
Merge pull request #15791 from getsentry/prepare-release/9.9.0
meta: Update changelog for 9.9.0
Configuration menu - View commit details
-
Copy full SHA for 80e19f2 - Browse repository at this point
Copy the full SHA 80e19f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43c4c83 - Browse repository at this point
Copy the full SHA 43c4c83View commit details
There are no files selected for viewing