-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12831 from getsentry/prepare-release/8.16.0
- Loading branch information
Showing
133 changed files
with
1,889 additions
and
906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 2 additions & 136 deletions
138
dev-packages/browser-integration-tests/fixtures/loader.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...ages/browser-integration-tests/suites/integrations/moduleMetadata/appliesMetadata/init.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as Sentry from '@sentry/browser'; | ||
|
||
Sentry.init({ | ||
dsn: 'https://public@dsn.ingest.sentry.io/1337', | ||
integrations: [Sentry.moduleMetadataIntegration()], | ||
beforeSend(event) { | ||
const moduleMetadataEntries = []; | ||
|
||
if (event.type === undefined) { | ||
try { | ||
event.exception.values.forEach(value => { | ||
value.stacktrace.frames.forEach(frame => { | ||
moduleMetadataEntries.push(frame.module_metadata); | ||
}); | ||
}); | ||
} catch (e) { | ||
// noop | ||
} | ||
} | ||
|
||
event.extra = { | ||
...event.extra, | ||
module_metadata_entries: moduleMetadataEntries, | ||
}; | ||
|
||
return event; | ||
}, | ||
}); |
22 changes: 22 additions & 0 deletions
22
...s/browser-integration-tests/suites/integrations/moduleMetadata/appliesMetadata/subject.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var _sentryModuleMetadataGlobal = | ||
typeof window !== 'undefined' | ||
? window | ||
: typeof global !== 'undefined' | ||
? global | ||
: typeof self !== 'undefined' | ||
? self | ||
: {}; | ||
|
||
_sentryModuleMetadataGlobal._sentryModuleMetadata = _sentryModuleMetadataGlobal._sentryModuleMetadata || {}; | ||
|
||
_sentryModuleMetadataGlobal._sentryModuleMetadata[new Error().stack] = Object.assign( | ||
{}, | ||
_sentryModuleMetadataGlobal._sentryModuleMetadata[new Error().stack], | ||
{ | ||
foo: 'bar', | ||
}, | ||
); | ||
|
||
setTimeout(() => { | ||
throw new Error('I am a module metadata Error'); | ||
}, 0); |
Oops, something went wrong.