We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13029ed commit 413d62dCopy full SHA for 413d62d
packages/browser/examples/app.js
@@ -5,13 +5,15 @@ class HappyIntegration {
5
}
6
7
setupOnce() {
8
- Sentry.configureScope(scope => {
9
- scope.addEventProcessor(async event => {
+ Sentry.addGlobalEventProcessor(async (event) => {
+ const self = getCurrentHub().getIntegration(HappyIntegration);
10
+ // Run the integration ONLY when it was installed on the current Hub
11
+ if (self) {
12
if (event.message === "Happy Message") {
13
event.message = `\\o/ ${event.message} \\o/`;
14
- return event;
- });
15
+ }
16
+ return event;
17
});
18
19
0 commit comments