File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ function addServerIntegrations(options: NodeOptions): void {
174
174
} ) ;
175
175
}
176
176
177
+ integrations = addOrUpdateIntegration ( new Integrations . Undici ( ) , integrations ) ;
178
+
177
179
options . integrations = integrations ;
178
180
}
179
181
Original file line number Diff line number Diff line change @@ -161,6 +161,15 @@ describe('Server init()', () => {
161
161
expect ( consoleIntegration ) . toBeDefined ( ) ;
162
162
} ) ;
163
163
164
+ it ( 'adds the Undici integration' , ( ) => {
165
+ init ( { } ) ;
166
+
167
+ const nodeInitOptions = nodeInit . mock . calls [ 0 ] [ 0 ] as ModifiedInitOptions ;
168
+ const undiciIntegration = findIntegrationByName ( nodeInitOptions . integrations , 'Undici' ) ;
169
+
170
+ expect ( undiciIntegration ) . toBeDefined ( ) ;
171
+ } ) ;
172
+
164
173
describe ( '`Http` integration' , ( ) => {
165
174
it ( 'adds `Http` integration with tracing enabled if `tracesSampleRate` is set' , ( ) => {
166
175
init ( { tracesSampleRate : 1.0 } ) ;
You can’t perform that action at this time.
0 commit comments