File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ export function getRemixDefaultIntegrations(options: RemixOptions): Integration[
140
140
return [
141
141
...getDefaultNodeIntegrations ( options as NodeOptions ) . filter ( integration => integration . name !== 'Http' ) ,
142
142
httpIntegration ( ) ,
143
- ] ;
143
+ options . autoInstrumentRemix ? remixIntegration ( ) : undefined ,
144
+ ] . filter ( int => int ) as Integration [ ] ;
144
145
}
145
146
146
147
/**
@@ -167,10 +168,7 @@ export function init(options: RemixOptions): void {
167
168
return ;
168
169
}
169
170
170
- options . defaultIntegrations = [
171
- ...getRemixDefaultIntegrations ( options as NodeOptions ) ,
172
- options . autoInstrumentRemix ? remixIntegration ( ) : undefined ,
173
- ] . filter ( int => int ) as Integration [ ] ;
171
+ options . defaultIntegrations = getRemixDefaultIntegrations ( options as NodeOptions ) ;
174
172
175
173
nodeInit ( options as NodeOptions ) ;
176
174
You can’t perform that action at this time.
0 commit comments