Skip to content
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

Sync develop -> master #11196

Closed
wants to merge 48 commits into from
Closed

Sync develop -> master #11196

wants to merge 48 commits into from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 19, 2024

Yesterday, I merged the release/8.0.0-alpha.4 branch into develop. Turns out it should have been merged into master instead after which we'd merge master into develop.

So to fix the "stale" master branch, this PR simply merges the current develop branch into master which will bump the packages on master correctly. This also means that master contains commits that haven't been released yet but that's fine. This should be cleaned up nicely once we cut the next release.

lforst and others added 30 commits March 15, 2024 08:33
Size seems to be much increased, let's figure this out in follow ups.

Also there is some issue with it reading next.js sizes, also something
we can look at in follow ups... I disabled these size checks for now.

The action is now inlined as a package in the monorepo, as our fork has
been archived and the upstream package is not really maintained and
works pretty different from what we need. Now we at least have full
control over this.
ref #11062

---------

Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
[Gitflow] Merge master into develop
Noticed this is failing e.g.
https://github.com/getsentry/sentry-javascript/actions/runs/8294578489/job/22700116991,
it was an incorrect check: if there is no comparison branch, we don't
need a PR.
Apparently, webpack looks at `sideEffects` in the generated
package.json, and based on this does not tree shake correctly 😬

I also bumped webpack (one of the things I tried while debugging
this...).

This now puts the original `sideEffects` value from the original
`package.json` and puts it into the esm package.json.
This PR switches the underlying Node SDK from
`@sentry/node-experimental` (aka the "legacy" v7 Node SDK) to the new
OpenTelemetry-based `@sentry/node` package.
- Removes `makeMain` impl and exports from node (and downstream SDKs)
- Removes custom `getCurrentHub/getClient` impl in favour of core
- Removes `callExtensionMethod` as its not called from anywhere
- Fixes all the tests that relied on `getClient` never returning
undefined
- Removes `_callExtensionMethod` from core as it's not used
…11128)

I think we missed this from removing the other class-based exports.
Removes `getIntegrationById` and `getIntegration` methods on client.
Doesn't touch anything on the hub because we want to shim those methods.
closes #11136
closes #11062
closes #11137
closes #11138
closes #11139

In #11134 we changed
the playwright tests use a larger GH runner. This should hopefully fix
the flaky replay playwright tests. Validating that here.

Note that `Detect flaky tests / Check tests for flakiness` runs on the
smaller workers, so it'll experience the same issues we had before.
…11135)

- Moves Sentry deps to `dependencies` rather than `devDependencies`
- Updated `package.json` exports
- Updated the rollup config to mirror our other modules with the
addition of the commonJs plugin
- I couldn't use `createRequire` myself because Jest can't handle
`import.meta` so instead I used `@rollup/plugin-esm-shim` which shims
both `require` and `__dirname` in `cpu_profiler.ts` in the ESM output!
`@sentry/types` does not align with `@sentry/core`, and it causes build
errors when `exactOptionalPropertyTypes` is `true`.

This patch fixes the TypeScript error by explicitly adding `undefined` to the `sampled` flag of `Transaction`.
Ref: #11107

Removes `--detectOpenHandles` from Jest configurations of Remix and
Next.JS which apparently causes segfault.

Re-enables Remix Node 16 and Node 18 integration tests on CI
…11126)

The `rethrowAfterCapture` option was deprecated in
#4448, which was
released in `6.17.2`. This finally removes the option.
In #8927 we
deprecated and removed the `wrap` method.

This PR removes the deprecated export from v8.
Removes exports for `ModuleMetadata` and `RequestData`
Closes #11159

This PR also modifies `getEnvelopeEndpointWithUrlEncodedAuth` which had
a suggested simplification for v8.

I ignored the suggestion because `{ tunnel, _metadata }` feels like a
very "internal" API. Sure, this is convenient because it lets you pass
the client options directly but it doesn't sit right as a user facing
API.
ref #9832

Deletes deprecated imports from utils package in preparation to move it
to core/related.

Also important because deleting `addOrUpdateIntegration` and it's
associated tests means that we remove more usages of class based
integrations.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Closes #11118

This PR exports what used to be called `initOtel` so that the
`NodeClient` can be used without calling `init`.

If OpenTelemetry is only required for performance feature, we should
also only enable it if the sample rate is above zero to save memory.
c298lee and others added 6 commits March 18, 2024 15:57
Fixes some cropping jank:
1. Cropping is smoother: previously the event listeners weren't working
when the mouse was on the cropping buttons, which was causing the
jankiness
2. Changes the cursor when on the cropping buttons
3. Increased the minimum size required for cropping so it's easier to
resize


https://github.com/getsentry/sentry-javascript/assets/55311782/71b7401e-c9f2-44c2-9f92-64c1c80d24ef

Fixes getsentry/sentry#67056
We use
[getDisplayMedia](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)
to take screenshots, which only works in secure contexts, so disable
screenshot when not a secure context.
For showing current behavior with using differently timed async spans in
browser
ref #10986
ref #10944
Copy link
Contributor

github-actions bot commented Mar 19, 2024

⚠️ This PR is opened against master. You probably want to open it against develop.

@Lms24 Lms24 requested a review from lforst March 19, 2024 09:44
Copy link
Contributor

github-actions bot commented Mar 19, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 80.73 KB (added)
@sentry/browser (incl. Tracing, Replay) 72.08 KB (added)
@sentry/browser (incl. Tracing, Replay with Canvas) 75.88 KB (added)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 65.64 KB (added)
@sentry/browser (incl. Tracing) 36.68 KB (added)
@sentry/browser (incl. browserTracingIntegration) 36.68 KB (added)
@sentry/browser (incl. feedbackIntegration) 31.35 KB (added)
@sentry/browser (incl. feedbackModalIntegration) 31.47 KB (added)
@sentry/browser (incl. feedbackScreenshotIntegration) 31.48 KB (added)
@sentry/browser (incl. sendFeedback) 27.43 KB (added)
@sentry/browser 22.6 KB (added)
CDN Bundle (incl. Tracing, Replay, Feedback) 75.07 KB (added)
CDN Bundle (incl. Tracing, Replay) 69.92 KB (added)
CDN Bundle (incl. Tracing) 36.27 KB (added)
CDN Bundle 23.97 KB (added)
CDN Bundle (incl. Tracing, Replay) - uncompressed 219.58 KB (added)
CDN Bundle (incl. Tracing) - uncompressed 109.53 KB (added)
CDN Bundle - uncompressed 71 KB (added)
@sentry/react (incl. Tracing, Replay) 72.07 KB (added)
@sentry/react 22.63 KB (added)

s1gr1d and others added 8 commits March 19, 2024 15:23
…gular support at v14 (#11091)

Start using vitest for better ESM support (since Angular 13)
closes #9830

---------

Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Move v4, v5, and v6 changelog entries into their own file. This should
help speed up rendering of main changelog.

Also add relevant v7 changelog items to changelog.
In order to proceed with removing `Sentry.Integrations.X` as per
#8844, there's
still some places to clean up.

This does conflict with
#11016, but not sure
when that merges in, so opening this in the meantime to unblock the
integrations cleanup work. if we think the OTEL nextjs work will merge
in sooner then the next 1-2 days, I'm happy to leave this alone for now!
We received reports about this error

```
TypeError: Cannot redefine property: googletag
```

being thrown and reported to Sentry. It's a noisy error where we
strongly suspect that browser extensions interfere with our users' apps.
In an effort to quickly reduce noise, this patch adds the error message to
our SDK `inboundFilters` integration.
@Lms24
Copy link
Member Author

Lms24 commented Mar 21, 2024

This is too cumbersome to merge (i.e. get CI green before the next commit happens). I'm gonna close the PR. we should be good to just merge with the next alpha release which is also fine.

@Lms24 Lms24 closed this Mar 21, 2024
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.

None yet