File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,5 @@ export { globalHandlersIntegration } from './integrations/globalhandlers';
96
96
export { httpContextIntegration } from './integrations/httpcontext' ;
97
97
export { linkedErrorsIntegration } from './integrations/linkederrors' ;
98
98
export { browserApiErrorsIntegration } from './integrations/browserapierrors' ;
99
- export { inAppIntegration } from './integrations/in-app' ;
100
99
101
100
export { lazyLoadIntegration } from './utils/lazyLoadIntegration' ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export {
10
10
extraErrorDataIntegration ,
11
11
rewriteFramesIntegration ,
12
12
sessionTimingIntegration ,
13
+ inAppIntegration ,
13
14
} from '@sentry/core' ;
14
15
15
16
export {
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import { dedupeIntegration } from '@sentry/core';
16
16
import type { BrowserClientOptions , BrowserOptions } from './client' ;
17
17
import { BrowserClient } from './client' ;
18
18
import { DEBUG_BUILD } from './debug-build' ;
19
- import { inAppIntegration } from './exports' ;
20
19
import { WINDOW } from './helpers' ;
21
20
import { breadcrumbsIntegration } from './integrations/breadcrumbs' ;
22
21
import { browserApiErrorsIntegration } from './integrations/browserapierrors' ;
@@ -41,7 +40,6 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
41
40
linkedErrorsIntegration ( ) ,
42
41
dedupeIntegration ( ) ,
43
42
httpContextIntegration ( ) ,
44
- inAppIntegration ( ) ,
45
43
] ;
46
44
}
47
45
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export { parseSampleRate } from './utils/parseSampleRate';
81
81
export { applySdkMetadata } from './utils/sdkMetadata' ;
82
82
export { DEFAULT_ENVIRONMENT } from './constants' ;
83
83
export { addBreadcrumb } from './breadcrumbs' ;
84
+ export { inAppIntegration } from './integrations/in-app' ;
84
85
export { functionToStringIntegration } from './integrations/functiontostring' ;
85
86
export { inboundFiltersIntegration } from './integrations/inboundfilters' ;
86
87
export { linkedErrorsIntegration } from './integrations/linkederrors' ;
Original file line number Diff line number Diff line change 1
- import { defineIntegration , getFilenameDebugIdMap } from '@sentry/core' ;
1
+ import type { Client , Event , EventHint } from '@sentry/types' ;
2
+ import { defineIntegration } from '../integration' ;
3
+ import { getFilenameDebugIdMap } from '../utils/prepareEvent' ;
2
4
3
5
/**
4
6
* Sets the `in_app` property on stack frames according to whether the file has a debugId.
5
7
*/
6
8
export const inAppIntegration = defineIntegration ( ( ) => {
7
9
return {
8
10
name : 'InApp' ,
9
- processEvent : ( event , _ , client ) => {
11
+ processEvent : ( event : Event , _ : EventHint , client : Client ) => {
10
12
const stackParser = client . getOptions ( ) . stackParser ;
11
13
const debugIds = new Set ( Object . keys ( getFilenameDebugIdMap ( stackParser ) ) ) ;
12
14
You can’t perform that action at this time.
0 commit comments