otel-cf-workers icon indicating copy to clipboard operation
otel-cf-workers copied to clipboard

`Promise will never complete` when instrumenting worker

Open jmaroeder opened this issue 7 months ago • 6 comments

We have a pretty complex cloudflare worker that we recently added instrumentation to with otel-cf-workers. The library has worked like a dream, providing extra insight into our requests. However, when we enabled the library, we noticed an uptick in errors from Cloudflare, with the error message Promise will never complete. This seems to happen on about 0.01% of requests (with a sampling ratio of 0.01, or 1%).

Has anyone else run into this? When we disable instrumentation, the error goes away. Unfortunately cloudflare's documentation about this error is pretty scant.

jmaroeder avatar Jul 20 '24 01:07 jmaroeder