Skip to content

Commit

Permalink
Merge pull request #9661 from getsentry/prepare-release/7.82.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Nov 27, 2023
2 parents eb1c9e5 + cf8cda8 commit 853f50b
Show file tree
Hide file tree
Showing 201 changed files with 3,736 additions and 2,571 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 7.82.0

- feat(astro): Automatically add Sentry middleware in Astro integration (#9532)
- feat(core): Add optional `setup` hook to integrations (#9556)
- feat(core): Add top level `getClient()` method (#9638)
- feat(core): Allow to pass `mechanism` as event hint (#9590)
- feat(core): Allow to use `continueTrace` without callback (#9615)
- feat(feedback): Add onClose callback to showReportDialog (#9433) (#9550)
- feat(nextjs): Add request data to all edge-capable functionalities (#9636)
- feat(node): Add Spotlight option to Node SDK (#9629)
- feat(utils): Refactor `addInstrumentationHandler` to dedicated methods (#9542)
- fix: Make full url customizable for Spotlight (#9652)
- fix(astro): Remove Auth Token existence check (#9651)
- fix(nextjs): Fix middleware detection logic (#9637)
- fix(remix): Skip capturing aborted requests (#9659)
- fix(replay): Add `BODY_PARSE_ERROR` warning & time out fetch response load (#9622)
- fix(tracing): Filter out invalid resource sizes (#9641)
- ref: Hoist `RequestData` integration to `@sentry/core` (#9597)
- ref(feedback): Rename onDialog* to onForm*, remove onActorClick (#9625)

Work in this release contributed by @arya-s. Thank you for your contribution!

## 7.81.1

- fix(astro): Remove method from span op (#9603)
Expand Down
19 changes: 5 additions & 14 deletions packages/angular/src/errorhandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { HttpErrorResponse } from '@angular/common/http';
import type { ErrorHandler as AngularErrorHandler } from '@angular/core';
import { Inject, Injectable } from '@angular/core';
import * as Sentry from '@sentry/browser';
import type { Event, Scope } from '@sentry/types';
import { addExceptionMechanism, isString } from '@sentry/utils';
import type { Event } from '@sentry/types';
import { isString } from '@sentry/utils';

import { runOutsideAngular } from './zone';

Expand Down Expand Up @@ -102,17 +102,8 @@ class SentryErrorHandler implements AngularErrorHandler {

// Capture handled exception and send it to Sentry.
const eventId = runOutsideAngular(() =>
Sentry.captureException(extractedError, (scope: Scope) => {
scope.addEventProcessor(event => {
addExceptionMechanism(event, {
type: 'angular',
handled: false,
});

return event;
});

return scope;
Sentry.captureException(extractedError, {
mechanism: { type: 'angular', handled: false },
}),
);

Expand All @@ -124,7 +115,7 @@ class SentryErrorHandler implements AngularErrorHandler {

// Optionally show user dialog to provide details on what happened.
if (this._options.showDialog) {
const client = Sentry.getCurrentHub().getClient();
const client = Sentry.getClient();

if (client && client.on && !this._registeredAfterSendEventHandler) {
client.on('afterSendEvent', (event: Event) => {
Expand Down

0 comments on commit 853f50b

Please sign in to comment.