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

meta(changelog): Update changelog for 8.29.0 #13619

Merged
merged 26 commits into from
Sep 9, 2024
Merged

Conversation

andreiborza
Copy link
Member

I messed up the previous PR and merged it into develop 😅 .

Lms24 and others added 26 commits September 3, 2024 10:12
)

Add a test to our browser integration tests where we explicitly check that httpContextIntegration sets all its supported properties: url, user-agent and (previously untested) referer.
[Gitflow] Merge master into develop
Resolves #13308 

Implement genericPool OTL instrumentation in `packages/node`

- [x] If you've added code that should be tested, please add tests.
- [x] Ensure your code lints and the test suite passes (`yarn lint`) &
(`yarn test`).

---------

Signed-off-by: Kaung Zin Hein <kaungzinhein113@gmail.com>
UI spans make sense if they are a child of e.g. a pageload root span.
This change ensures UI spans are not created as root spans.

ref #13546
Noticed that it was a bit annoying, when we exceeded the size limit, to
find out why/what has failed.

Now, it should show in the GH comment which specific check has failed,
and what the current limit is:


![image](https://github.com/user-attachments/assets/13495922-ac91-42bf-a398-18bb7b0e9e72)

While I was at this, I also streamlined the code a bit, extracted it a
bit into utils to de-clutter stuff, and fixed/improved some debug
logging issues (e.g. the log group was not correctly closed before, ...)
This PR adds the external contributor to the CHANGELOG.md file, so that
they are credited for their contribution. See #13465
Fixes attribution type: when adding an attribution in CLS we add
{`value`, `nodeIds`} not {`value`, `sources`}
Today, if you have a pluggable integration, it will incorrectly use it's
own logger, which will generally be disabled. This is because we inline
all the logger code into the bundle, but the logger is never enabled.

Now, the logger is kept as a singleton on the carrier, ensuring that we
always use the same logger.

I added browser integration tests to cover this - especially one in
feedback which failed before.

NOTE: This is still not really ideal, because we still include the whole
`makeLogger` code in each pluggable integration that uses the logger 🤔
but we can look into this later - now, at least logging should work for
pluggable integrations.
I wanted to add a new entry for size limit with sentry browser with max.
tree shaking. While doing this, I noticed that bundle size did not
shrink as much as I would have expected it. After playing around some, I
noticed that it was not actually shaking out the constant changes, for
whatever reason. Probably some size-limit internal default config.

Now, i actually add terser to ensure it fully minimizes & tree shakes
stuff for us.
Uses the stringified value of `origin` to call `.endsWith()`.

closes #13574
…13549)

Guard the call for `context.waitUntil` in the CF request
handler wrapper. Our public API requires `context` to be present,
however, in certain cases like Astro during build (prerendering),
`context` becomes `undefined`.
Ref: #8105

Emit a warning about certain incompatibilities when we detect a
turbopack build (dev or prod build).
The logic in this PR is slightly intense but all it does is check for
the Next.js version and if we are on a version that included [this
change](vercel/next.js#68853) which stabilized
`instrumentation.ts` we no longer inject the
`experimental.instrumentationHook` option in `next.config.js`.

This is necessary because otherwise Next.js prints scary warnings and
users may be confused why.
Adding another source maps generation step with rollup to include
Nitro-generated source maps as well.

closes #13383
Likely closes many issues but I don't want to auto-close anything
specific here. We should probably confirm the issues are closed
individually.

`import-in-the-middle` by default wraps every ES module with a wrapping
module that later allows it exports to be modified. This has issues
though because the wrapping output of `import-in-the-middle` is not
compatible with all modules.

To help work around this I [added a
feature](nodejs/import-in-the-middle#146) to
`import-in-the-middle` that allows us to only wrap modules that we
specifically need to instrument.

```ts
import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: '__DSN__',
  registerEsmLoaderHooks: { onlyHookedModules: true },
});
```

So far I've only changed the express integration test to use this new
mode.
…e maps upload (#13493)

This plugin simplifies source maps upload by using `@sentry/vite-plugin`
and enabling source map generation by default.

Usage:
```js
import { defineConfig } from '@solidjs/start/config'
import { sentrySolidStartVite } from '@sentry/solidstart'

export default defineConfig({
  vite: {
    plugins: [
      sentrySolidStartVite({
        org: process.env.SENTRY_ORG,
        project: process.env.SENTRY_PROJECT,
        authToken: process.env.SENTRY_AUTH_TOKEN,
        debug: true,
      }),
    ],
  }
})
```

Closes: #12553
…13587)

This bumps all our internal OTEL instrumentation to their latest
version.

Mainly, this fixes two things:

* Mongoose now supports v7 & v8
open-telemetry/opentelemetry-js-contrib#2353
* A variety of bug fixes, including a problem with http.get in ESM mode
open-telemetry/opentelemetry-js#4857 - See:
https://github.com/open-telemetry/opentelemetry-js/releases/tag/experimental%2Fv0.53.0

Related:

* open-telemetry/opentelemetry-js#4975 Issue
about relaxing deps in "core" instrumentation packages
* PR to bump deps in `@prisma/instrumentation`:
prisma/prisma#25160
* PR to bump deps in `opentelemetry-instrument-remix`:
justindsmith/opentelemetry-instrumentations-js#52
* PR to bump deps in `opentelemetry-instrumentation-fetch-node`:
gas-buddy/opentelemetry-instrumentation-fetch-node#17
(which will also be superseded by
#13485 eventually)

* Closes #11499
#13582 (comment)
correctly identified that this path is messed up.
Currently, we use `path.join` to provide sourcemap directories. On
Windows, the resulting strings would use `\` which is an escape
character for glob patterns and thus no sourcemaps would be found.

This fix ensures we use posix paths which glob then handles correctly on
Windows too.

Closes: #13270
Partly fixes:
#13288
Removes optional types so that type mismatches would be caught by
typescript

Follow up to #13573
@andreiborza andreiborza requested a review from a team as a code owner September 9, 2024 07:08
Copy link
Contributor

github-actions bot commented Sep 9, 2024

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.52 KB added added
@sentry/browser - with treeshaking flags 21.3 KB added added
@sentry/browser (incl. Tracing) 34.78 KB added added
@sentry/browser (incl. Tracing, Replay) 71.23 KB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.67 KB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 75.57 KB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 88.3 KB added added
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 90.14 KB added added
@sentry/browser (incl. metrics) 26.83 KB added added
@sentry/browser (incl. Feedback) 39.6 KB added added
@sentry/browser (incl. sendFeedback) 27.19 KB added added
@sentry/browser (incl. FeedbackAsync) 31.9 KB added added
@sentry/react 25.28 KB added added
@sentry/react (incl. Tracing) 37.74 KB added added
@sentry/vue 26.67 KB added added
@sentry/vue (incl. Tracing) 36.61 KB added added
@sentry/svelte 22.65 KB added added
CDN Bundle 23.77 KB added added
CDN Bundle (incl. Tracing) 36.49 KB added added
CDN Bundle (incl. Tracing, Replay) 70.91 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 76.22 KB added added
CDN Bundle - uncompressed 69.63 KB added added
CDN Bundle (incl. Tracing) - uncompressed 108.21 KB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 219.87 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 233.07 KB added added
@sentry/nextjs (client) 37.51 KB added added
@sentry/sveltekit (client) 35.35 KB added added
@sentry/node 124.99 KB added added
@sentry/node - without tracing 95.51 KB added added
@sentry/aws-serverless 107.52 KB added added

@andreiborza andreiborza merged commit 75e898f into master Sep 9, 2024
228 checks passed
@andreiborza andreiborza deleted the prepare-release/8.29.0 branch September 9, 2024 07:31
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.

8 participants