Skip to content

Commit

Permalink
fix: make noopmeterprovider forceFlush return a promise (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk authored Aug 28, 2023
1 parent 25f014d commit 53c5fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
};
}

Expand Down

0 comments on commit 53c5fca

Please sign in to comment.