Skip to content

meta(changelog): Update changelog for 7.46.0 - #7666

Merged
AbhiPrasad merged 51 commits into
masterfrom
prepare-release/7.46.0
Mar 30, 2023
Merged

meta(changelog): Update changelog for 7.46.0#7666
AbhiPrasad merged 51 commits into
masterfrom
prepare-release/7.46.0

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Contributor

No description provided.

github-actionsBotand others added 30 commits March 24, 2023 09:07
[Gitflow] Merge master into develop
No need to depend on @sentry/browser as devDependency, which Nx complains about.
I copied the TestClient from Replay, where we had the same issue.
…unctions (#7609)
Adjust the span ops of `load` functions to distinguish between spans of server-only and universal `load` functions (`+page.ts` vs `+page.server.ts`):
… loads (#7603)
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
Apparently, the `%sveltekit.head%` placeholder isn't present in the html that's passed to `transformPageChunk`. Hence our `<meta>` tag injection logic introduced in #7574 didn't find the anchor point where to inject the tags. This PR fixes the injection, by simply appending it to an open `<head>` tag. It's not pretty but it should do the trick 🤞 (we can revisit if this breaks folks).
…#7613)
Add a few more properties to `resource` performance entries (e.g. script, img, etc).
* Adds `responseStatus` which is new in Chrome 109 for status code
* Adds `decodedBodySize` so that we can tell user if their resource was compressed or not.
Add a small test to check if the SDK parses a rate limit response that has no category but a scope: `60::organization`. This came up in Slack and in getsentry/ops#6446 (comment).
This works similar to `ignoreErrors`, but matches transaction names.
Previously, we always created a new domain when entering the `sentryHandle` function. This caused "nested" SvelteKit Server calls to create new transaction whenever a new domain was created in the `sentryHandle` function because the active span is bound to the domain. This fix introduces a check if there is an active transaction, in which case we just execute the handler and don't create a new domain, as we are already in this active domain. As a result, nested SK server calls become a span of the parent server call instead of a new transaction.
AbhiPrasadand others added 10 commits March 29, 2023 18:21
Fix Node SDK exports not being available in prod builds. For example, calling `Sentry.withScope(...)` throws an error because `withScope` is not defined on the top-level namespace. This is because for CJS, Vite puts wildcard-exported properties into the `default` property rather than onto the namespace in production builds.
 Split up the previously generic `handleLoadWithSentry` wrapper function into two functions on the server side:
* `handleLoadWithSentry` to wrap universal load on server and client
* `handleServerLoadWithSentry` to wrap server load on the server (duh)
It further adjusts types on the client as well as on the server side to return a generic. The very liberal typing of the functions' generic is on purpose because any type that's more narrowed down (e.g. `T extends Load`) would create a type error with the users' actual load types. These types (e.g. `PageData` or `ServerLayoutData`) are generated at build time per route/page. Hence, we cannot access them.
…d` transaction active (#7614)
Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com>
…7663)
To make our Sentry SDK setup easier, we'll instruct users to init the SDK in the hooks files rather than in the dedicated sentry.client|server.config.js files (#7661). To support this change, this PR makes the injection of our `injectSentryInitPlugin` into the users' build config depend on the existence of said sentry config files. If they don't exist, there's no need to add the plugin or adjust the server config.
…p in README (#7661)
Restructures SDK setup into client, server and build setup sections. Also moves init call from dedicated files to hooks.
Comment threadCHANGELOG.md Outdated
Comment threadCHANGELOG.md
Comment threadCHANGELOG.md
Comment threadCHANGELOG.md
Co-authored-by: Alden Quimby <aldenquimby@gmail.com>
Co-authored-by: Alden Quimby <alden@freewill.com>
Co-authored-by: Michi Hoffmann <cleptric@users.noreply.github.com>
Comment threadCHANGELOG.md Outdated
Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
@AbhiPrasad
AbhiPrasadforce-pushed the prepare-release/7.46.0 branch from dca631b to a3c8b9eCompareMarch 30, 2023 11:04
@AbhiPrasad

Copy link
Copy Markdown
ContributorAuthor

Rebased to include #7667, added heading items, and re-formatted content.

@AbhiPrasad
AbhiPrasadforce-pushed the prepare-release/7.46.0 branch 2 times, most recently from a69ef59 to 0a62ebeCompareMarch 30, 2023 11:12
@AbhiPrasad
AbhiPrasadforce-pushed the prepare-release/7.46.0 branch from 0a62ebe to 5e288f5CompareMarch 30, 2023 11:29
@AbhiPrasad
AbhiPrasad merged commit eb898f5 into masterMar 30, 2023
@AbhiPrasad
AbhiPrasad deleted the prepare-release/7.46.0 branch March 30, 2023 12:02
Sign up for freeto 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

@AbhiPrasad@mydea@lforst@Lms24@timfish@billyvg@0Calories