File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
packages/core/src/integrations Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 5
5
- [ browser] feat: Show dropped event url in ` blacklistUrl ` /` whitelistUrl ` debug mode
6
6
- [ browser] feat: Use better event description instead of ` event_id ` for user-facing logs
7
7
- [ core] ref: Create common integrations that are exposed on ` @sentry/core ` and reexposed through ` browser ` /` node `
8
+ - [ core] feat: Debug integration
8
9
9
10
## 4.0.0
10
11
Original file line number Diff line number Diff line change 1
- // TODO
1
+ export { Debug } from './pluggable/debug' ;
Original file line number Diff line number Diff line change
1
+ import { configureScope } from '@sentry/minimal' ;
2
+ import { Integration , SentryEvent } from '@sentry/types' ;
3
+
4
+ /** JSDoc */
5
+ export class Debug implements Integration {
6
+ /**
7
+ * @inheritDoc
8
+ */
9
+ public name : string = 'Debug' ;
10
+
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ public install ( ) : void {
15
+ configureScope ( scope => {
16
+ scope . addEventProcessor ( async ( event : SentryEvent ) => {
17
+ // tslint:disable-next-line:no-console
18
+ console . log ( event ) ;
19
+ return event ;
20
+ } ) ;
21
+ } ) ;
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments