Skip to content

Commit 853f50b

Browse files
author
Luca Forstner
authored
Merge pull request #9661 from getsentry/prepare-release/7.82.0
2 parents eb1c9e5 + cf8cda8 commit 853f50b

File tree

201 files changed

+3736
-2571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+3736
-2571
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@
44

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

7+
## 7.82.0
8+
9+
- feat(astro): Automatically add Sentry middleware in Astro integration (#9532)
10+
- feat(core): Add optional `setup` hook to integrations (#9556)
11+
- feat(core): Add top level `getClient()` method (#9638)
12+
- feat(core): Allow to pass `mechanism` as event hint (#9590)
13+
- feat(core): Allow to use `continueTrace` without callback (#9615)
14+
- feat(feedback): Add onClose callback to showReportDialog (#9433) (#9550)
15+
- feat(nextjs): Add request data to all edge-capable functionalities (#9636)
16+
- feat(node): Add Spotlight option to Node SDK (#9629)
17+
- feat(utils): Refactor `addInstrumentationHandler` to dedicated methods (#9542)
18+
- fix: Make full url customizable for Spotlight (#9652)
19+
- fix(astro): Remove Auth Token existence check (#9651)
20+
- fix(nextjs): Fix middleware detection logic (#9637)
21+
- fix(remix): Skip capturing aborted requests (#9659)
22+
- fix(replay): Add `BODY_PARSE_ERROR` warning & time out fetch response load (#9622)
23+
- fix(tracing): Filter out invalid resource sizes (#9641)
24+
- ref: Hoist `RequestData` integration to `@sentry/core` (#9597)
25+
- ref(feedback): Rename onDialog* to onForm*, remove onActorClick (#9625)
26+
27+
Work in this release contributed by @arya-s. Thank you for your contribution!
28+
729
## 7.81.1
830

931
- fix(astro): Remove method from span op (#9603)

packages/angular/src/errorhandler.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { HttpErrorResponse } from '@angular/common/http';
22
import type { ErrorHandler as AngularErrorHandler } from '@angular/core';
33
import { Inject, Injectable } from '@angular/core';
44
import * as Sentry from '@sentry/browser';
5-
import type { Event, Scope } from '@sentry/types';
6-
import { addExceptionMechanism, isString } from '@sentry/utils';
5+
import type { Event } from '@sentry/types';
6+
import { isString } from '@sentry/utils';
77

88
import { runOutsideAngular } from './zone';
99

@@ -102,17 +102,8 @@ class SentryErrorHandler implements AngularErrorHandler {
102102

103103
// Capture handled exception and send it to Sentry.
104104
const eventId = runOutsideAngular(() =>
105-
Sentry.captureException(extractedError, (scope: Scope) => {
106-
scope.addEventProcessor(event => {
107-
addExceptionMechanism(event, {
108-
type: 'angular',
109-
handled: false,
110-
});
111-
112-
return event;
113-
});
114-
115-
return scope;
105+
Sentry.captureException(extractedError, {
106+
mechanism: { type: 'angular', handled: false },
116107
}),
117108
);
118109

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

125116
// Optionally show user dialog to provide details on what happened.
126117
if (this._options.showDialog) {
127-
const client = Sentry.getCurrentHub().getClient();
118+
const client = Sentry.getClient();
128119

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

0 commit comments

Comments
 (0)