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: Add Changelog entry for 8.6.0 #12272

Merged
merged 15 commits into from
May 29, 2024
Merged

meta: Add Changelog entry for 8.6.0 #12272

merged 15 commits into from
May 29, 2024

Commits on May 27, 2024

  1. Merge pull request #12245 from getsentry/master

    [Gitflow] Merge master into develop
    github-actions[bot] committed May 27, 2024
    Configuration menu
    Copy the full SHA
    215238f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5d0f6f4 View commit details
    Browse the repository at this point in the history
  3. chore: Remove express integration comment from e2e tests (#12241)

    We are safe to change this now.
    AbhiPrasad committed May 27, 2024
    Configuration menu
    Copy the full SHA
    4644dd7 View commit details
    Browse the repository at this point in the history
  4. feat(react): Add Sentry.reactErrorHandler (#12147)

    This PR introduces `Sentry.reactErrorHandler`, which looks like so:
    
    ```js
    import * as Sentry from '@sentry/react';
    import { hydrateRoot } from "react-dom/client";
    
    ReactDOM.hydrateRoot(
      document.getElementById("root"),
      <React.StrictMode>
        <App />
      </React.StrictMode>,
      {
        onUncaughtError: Sentry.reactErrorHandler(),
        onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
          // optional callback if users want custom config.
        }),
      }
    );
    ```
    
    To validate this change, we add a react 19 e2e test.
    AbhiPrasad committed May 27, 2024
    Configuration menu
    Copy the full SHA
    7185a53 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8007c13 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. fix(tracing): Ensure sent spans are limited to 1000 (#12252)

    To avoid too large payloads, we should only send up to 1000 spans.
    
    We actually had two different problems here in browser and node:
    
    1. In browser, we _did_ limit to 1000, but we did so in an unfortunate
    way, which is to reset the set after 1000 spans. So if a span had 1010
    children, only the last 10 would be send.
    2. In node, we just sent all spans.
    
    I rewrote this to now consistently send the first 1000 spans of a
    transaction.
    
    I decided to keep all spans (no matter the limit) on the internal
    parent-child map. Due to this this may grow a lot, but we can avoid
    inconsistent state (e.g. what happens if a span has a parent in the map,
    but the parent does not have the span as children, ...)
    All of these should be garbage collected together ideally, so this
    should be fine hopefully.
    mydea committed May 28, 2024
    Configuration menu
    Copy the full SHA
    38bd57b View commit details
    Browse the repository at this point in the history
  2. test: Improve E2E node tests (#12258)

    This does two main things:
    
    1. Updates node E2E tests to use `fetch` instead of axios
    2. Update node E2E tests to avoid sending to Sentry.
    
    Instead, we check everywhere via the proxy that the data sent is OK.
    
    
    Part of #11910
    mydea committed May 28, 2024
    Configuration menu
    Copy the full SHA
    d5f1caf View commit details
    Browse the repository at this point in the history
  3. fix(core): Pass in cron monitor config correctly (#12248)

    Fixes #12217
    
    Make sure `failure_issue_threshold` and `recovery_threshold` get passed
    in correctly.
    AbhiPrasad committed May 28, 2024
    Configuration menu
    Copy the full SHA
    cd97287 View commit details
    Browse the repository at this point in the history
  4. feat(sveltekit): Add request data to server-side events (#12254)

    This PR adds request data to server-side Sentry events by extracting the
    request object in our `sentryHandle` request handler. This is in line
    with our other SDKs and was simply missing from the SvelteKit SDK so
    far.
    Lms24 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    09af745 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    253c610 View commit details
    Browse the repository at this point in the history
  6. feat(metrics): Add timings method to metrics (#12226)

    This introduces a new method, `metrics.timing()`, which can be used in
    two ways:
    
    1. With a numeric value, to simplify creating a distribution metric.
    This will default to `second` as unit:
    
    ```js
    Sentry.metrics.timing('myMetric', 100);
    ```
    
    2. With a callback, which will wrap the duration of the callback. This
    can accept a sync or async callback. It will create an inactive span
    around the callback and at the end emit a metric with the duration of
    the span in seconds:
    
    ```js
    const returnValue = Sentry.metrics.timing('myMetric', measureThisFunction);
    ```
    
    Closes #12215
    mydea committed May 28, 2024
    Configuration menu
    Copy the full SHA
    d63d7c6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fb1ed25 View commit details
    Browse the repository at this point in the history
  8. ref(core): Use versioned carrier on global object (#12206)

    This PR implements a versioned Sentry carrier as described in #12188.
    The idea is that SDKs can from now on access their global Sentry
    instance and thereby no longer overwrite or interfere with potentially
    other SDKs (e.g. 3rd party libraries, scripts, etc).
    
    Internally, SDKs can access their carrier via the
    `window.__SENTRY__[SDK_VERSION]`. Externally (spotlight, loader script)
    via `window.__SENTRY__[window.__SENTRY__.version]`.
    
    ---------
    
    Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
    Lms24 and mydea committed May 28, 2024
    Configuration menu
    Copy the full SHA
    005f40d View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. test(replay): Remove outdated test constraint (#12270)

    Noticed this while looking into
    #12244, console
    should be instrumented just fine in the CDN bundle.
    mydea committed May 29, 2024
    Configuration menu
    Copy the full SHA
    82f4432 View commit details
    Browse the repository at this point in the history
  2. meta: Add Changelog entry for 8.6.0

    Update CHANGELOG.md
    
    Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
    Lms24 and mydea committed May 29, 2024
    Configuration menu
    Copy the full SHA
    787a29b View commit details
    Browse the repository at this point in the history