diff --git a/src/start.ts b/src/start.ts index 0d0d5e5a..145b2147 100644 --- a/src/start.ts +++ b/src/start.ts @@ -153,7 +153,9 @@ function createNoopMeterProvider() { }, // AWS Lambda instrumentation check for the existence of forceFlush, // if it does not exist, an error is logged for each span. - forceFlush() {}, + forceFlush() { + return Promise.resolve(); + }, }; }