Skip to content

Commit cd402ca

Browse files
committed
fix(startup): forced fetch load not to call Promise.resolve with an error
1 parent 1bae76d commit cd402ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/telemetry/fetchInstrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class FetchInstrumentation implements Instrumentation {
9696

9797
constructor(config: FetchInstrumentationConfig) {
9898
// Force load fetch API (since it's lazy loaded in Node 18)
99-
fetch('').catch(Promise.resolve);
99+
fetch('').catch(() => Promise.resolve());
100100
this.channelSubs = [];
101101
this.meter = metrics.getMeter(this.instrumentationName, this.instrumentationVersion);
102102
this.tracer = trace.getTracer(this.instrumentationName, this.instrumentationVersion);

0 commit comments

Comments
 (0)